diff options
| author | Stephan Groß | 2013-04-15 13:11:41 +0200 | 
|---|---|---|
| committer | Stephan Groß | 2013-04-15 13:11:41 +0200 | 
| commit | c329d2f08511dbc7660af9b8fc94e92d97c015cc (patch) | |
| tree | 8983fb1e3141bd16d8a3d553d026b59351049dea /rest_framework | |
| parent | 15f40138593c9add014cfabd4c0cb27a896cad6c (diff) | |
| download | django-rest-framework-c329d2f08511dbc7660af9b8fc94e92d97c015cc.tar.bz2 | |
Add DecimalField to field_mapping
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/serializers.py | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index e28bbe81..cbc6586d 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -548,6 +548,7 @@ class ModelSerializer(Serializer):          models.DateTimeField: DateTimeField,          models.DateField: DateField,          models.TimeField: TimeField, +        models.DecimalField: DecimalField,          models.EmailField: EmailField,          models.CharField: CharField,          models.URLField: URLField,  | 
