diff options
| author | Tom Christie | 2014-11-20 09:30:49 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-11-20 09:30:49 +0000 | 
| commit | bde725541359de1fef785801fc5dad98e70a8e2f (patch) | |
| tree | aaef3c51421646d2b06f53bc3f683359597c30cf /rest_framework/serializers.py | |
| parent | 40b1ea919b00bd8bf1f53f8eb8bf33a498b237b8 (diff) | |
| download | django-rest-framework-bde725541359de1fef785801fc5dad98e70a8e2f.tar.bz2 | |
Fix non-determanistic default bug. Closes #2099.
Diffstat (limited to 'rest_framework/serializers.py')
| -rw-r--r-- | rest_framework/serializers.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index ce0d14d6..2d5c843e 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -757,7 +757,7 @@ class ModelSerializer(Serializer):              elif getattr(unique_constraint_field, 'auto_now', None):                  default = timezone.now              elif unique_constraint_field.has_default(): -                default = model_field.default +                default = unique_constraint_field.default              else:                  default = empty | 
