remove trailing comma that made assertion message a tuple (instead of a string).

This commit is contained in:
Ignacio Gonzalez 2023-02-28 12:54:57 -03:00
parent 7cf2efc16e
commit 6dc794974a

View File

@ -1137,7 +1137,7 @@ class ModelSerializer(Serializer):
"and is now disallowed. Add an explicit fields = '__all__' to the "
"{serializer_class} serializer.".format(
serializer_class=self.__class__.__name__
),
)
)
if fields == ALL_FIELDS: