Update serializers.py

This commit is contained in:
orf 2015-10-16 11:03:35 +01:00
parent 8b7acc2ab7
commit bd8d2a8b51

View File

@ -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()`. '