django-rest-framework-braces icon indicating copy to clipboard operation
django-rest-framework-braces copied to clipboard

field validation errors not always formatted properly

Open macie-korte opened this issue 9 years ago • 0 comments
trafficstars

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."
    ]
  }

macie-korte avatar Jul 29 '16 18:07 macie-korte