Skip to content

Commit

Permalink
Merge pull request FutureMind#6 from mariodev/fix-wrong-error-code
Browse files Browse the repository at this point in the history
Fixes wrong error code for null in CharField
  • Loading branch information
tomlaszczuk authored Aug 1, 2016
2 parents bbca995 + 7c71e63 commit 2f3303c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_friendly_errors/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'BooleanField': {'required': 2001, 'invalid': 2011, 'null': 2021},
'NullBooleanField': {'required': 2001, 'invalid': 2011, 'null': 2021},

'CharField': {'required': 2002, 'null': 20022, 'blank': 2031,
'CharField': {'required': 2002, 'null': 2022, 'blank': 2031,
'max_length': 2041, 'min_length': 2051},
'EmailField': {'required': 2002, 'invalid': 2012, 'null': 2022,
'blank': 2031, 'max_length': 2041, 'min_length': 2051},
Expand Down

0 comments on commit 2f3303c

Please sign in to comment.