Skip to content

Commit

Permalink
Add catch all exceptions settings
Browse files Browse the repository at this point in the history
  • Loading branch information
toxinu committed Apr 13, 2016
1 parent a110dcb commit fa1d4f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rest_framework_friendly_errors/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
VALIDATION_FAILED_MESSAGE = USER_SETTINGS.get('VALIDATION_FAILED_MESSAGE',
_('Validation Failed'))

FRIENDLY_CATCH_ALL_EXCEPTIONS = USER_SETTINGS.get(
'FRIENDLY_CATCH_ALL_EXCEPTIONS', False)

FRIENDLY_FIELD_ERRORS = {
'BooleanField': {'required': 2001, 'invalid': 2011, 'null': 2021},
'NullBooleanField': {'required': 2001, 'invalid': 2011, 'null': 2021},
Expand Down

0 comments on commit fa1d4f0

Please sign in to comment.