Add custom serializer char/bool fields to accept null and coerce to appropriate type. Update validation for unique constraints so that error messages remain the same as before. Update key used in error response for non-field errors. Should address #791, #794, #809, #812 and #816.

This commit is contained in:
Chris Church
2016-02-09 00:13:09 -05:00
parent 7f300e3c9e
commit 1f290ed940
6 changed files with 153 additions and 68 deletions

View File

@@ -226,6 +226,7 @@ REST_FRAMEWORK = {
'EXCEPTION_HANDLER': 'awx.api.views.api_exception_handler',
'VIEW_NAME_FUNCTION': 'awx.api.generics.get_view_name',
'VIEW_DESCRIPTION_FUNCTION': 'awx.api.generics.get_view_description',
'NON_FIELD_ERRORS_KEY': '__all__',
}
AUTHENTICATION_BACKENDS = (