Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Choice Validation Constraint Example #5233

Closed
wants to merge 3 commits into from
Closed

Conversation

huebs
Copy link
Contributor

@huebs huebs commented May 6, 2015

Example came off sounding transphobic. Added "other" option.

huebs added 2 commits May 5, 2015 17:50
Example came off sounding transphobic. Added "other" option.
@@ -329,7 +329,7 @@ Some constraints, like :doc:`NotBlank </reference/constraints/NotBlank>`,
are simple whereas others, like the :doc:`Choice </reference/constraints/Choice>`
constraint, have several configuration options available. Suppose that the
``Author`` class has another property called ``gender`` that can be set to either
"male" or "female":
"male", "female", or "other":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove the comma in front of "or"? We don't use serial commas in the documentation.

@dupuchba
Copy link

dupuchba commented May 7, 2015

This is a funny one :-)

@xabbuh
Copy link
Member

xabbuh commented May 7, 2015

👍

@weaverryan
Copy link
Member

Haha, indeed! With an error message of "Choose a valid gender." - that was certainly not the intention :). Thanks Ben!

weaverryan added a commit that referenced this pull request May 23, 2015
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #5233).

Discussion
----------

Improve Choice Validation Constraint Example

Example came off sounding transphobic. Added "other" option.

Commits
-------

3597020 Remove Serial Comma
4643ce1 Update validation.rst
8295129 Improve Choice Validation Constraint Example
@weaverryan weaverryan closed this May 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants