mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 14:24:48 +03:00
Update serializers.py
This commit is contained in:
parent
8b7acc2ab7
commit
bd8d2a8b51
|
@ -844,7 +844,7 @@ class ModelSerializer(Serializer):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
instance = ModelClass.objects.create(**validated_data)
|
instance = ModelClass.objects.create(**validated_data)
|
||||||
except TypeError as exc:
|
except TypeError:
|
||||||
tb = traceback.format_exc()
|
tb = traceback.format_exc()
|
||||||
msg = (
|
msg = (
|
||||||
'Got a `TypeError` when calling `%s.objects.create()`. '
|
'Got a `TypeError` when calling `%s.objects.create()`. '
|
||||||
|
|
Loading…
Reference in New Issue
Block a user