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

field validation errors not always formatted properly #10

Open
macie-korte opened this issue Jul 29, 2016 · 0 comments
Open

field validation errors not always formatted properly #10

macie-korte opened this issue Jul 29, 2016 · 0 comments

Comments

@macie-korte
Copy link

Error strings with format markers do not always have the proper variables substituted in in the errors dictionary.

For example, this validation error message comes back from a ChoiceField after serializer validation is done. From example_serializer.errors:

  {
    "some_type": [
      "Select a valid choice. %(value)s is not one of the available choices."
    ]
  }
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

No branches or pull requests

1 participant