mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 21:14:01 +03:00
Whoops … Drop pdb
This commit is contained in:
parent
aa013a4289
commit
f385b72d80
|
@ -429,8 +429,6 @@ class ModelSerializer(Serializer):
|
||||||
|
|
||||||
max_length = getattr(model_field, 'max_length', None)
|
max_length = getattr(model_field, 'max_length', None)
|
||||||
if max_length:
|
if max_length:
|
||||||
if not isinstance(model_field, models.CharField):
|
|
||||||
import pdb; pdb.set_trace()
|
|
||||||
kwargs['max_length'] = max_length
|
kwargs['max_length'] = max_length
|
||||||
|
|
||||||
field_mapping = {
|
field_mapping = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user