aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarko Tibold2012-11-16 22:20:26 +0100
committerMarko Tibold2012-11-16 22:20:26 +0100
commitf385b72d80b7e9767a6f345496fd108ccc66a4bc (patch)
treeba022555f31d86146464782cfd9d9e5b96aa39d0
parentaa013a428948802dff9c8ca00df3b7af6faf139b (diff)
downloaddjango-rest-framework-f385b72d80b7e9767a6f345496fd108ccc66a4bc.tar.bz2
Whoops … Drop pdb
-rw-r--r--rest_framework/serializers.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index e5c057fb..8f4b7ae2 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -429,8 +429,6 @@ class ModelSerializer(Serializer):
max_length = getattr(model_field, 'max_length', None)
if max_length:
- if not isinstance(model_field, models.CharField):
- import pdb; pdb.set_trace()
kwargs['max_length'] = max_length
field_mapping = {