aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorDavid Sanders2013-06-11 16:10:25 -0600
committerDavid Sanders2013-06-11 16:10:25 -0600
commitfcaca737097f42168980426a25ec9a9616268d08 (patch)
tree7d2813093643e61cdabd371a45fd9b06d7b9fe91 /rest_framework
parent656897c2da5f050b6282cbdb1fca765cc69d11bd (diff)
downloaddjango-rest-framework-fcaca737097f42168980426a25ec9a9616268d08.tar.bz2
Pep8 lint
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/fields.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index d9f61b28..35848b4c 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -336,13 +336,13 @@ class ModelField(WritableField):
raise ValueError("ModelField requires 'model_field' kwarg")
self.min_length = kwargs.pop('min_length',
- getattr(self.model_field, 'min_length', None))
+ getattr(self.model_field, 'min_length', None))
self.max_length = kwargs.pop('max_length',
- getattr(self.model_field, 'max_length', None))
+ getattr(self.model_field, 'max_length', None))
self.min_value = kwargs.pop('min_value',
- getattr(self.model_field, 'min_value', None))
+ getattr(self.model_field, 'min_value', None))
self.max_value = kwargs.pop('max_value',
- getattr(self.model_field, 'max_value', None))
+ getattr(self.model_field, 'max_value', None))
super(ModelField, self).__init__(*args, **kwargs)