Improved comment on serializer instantiation

This commit is contained in:
Genaro Camele 2025-10-13 16:32:33 -03:00 committed by GitHub
parent 9d8b176374
commit e87a82b3fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -793,7 +793,7 @@ class TestWarningManyToMany(TestCase):
model = ManyToManySource model = ManyToManySource
fields = '__all__' fields = '__all__'
# Instantiates with invalid data (no value for a ManyToMany field to force using the default) # Instantiates serializer without 'value' field to force using the default=None for the ManyToMany relation
serializer = ManyToManySourceSerializer(data={ serializer = ManyToManySourceSerializer(data={
"name": "Invalid Example", "name": "Invalid Example",
}) })