mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-10-22 19:54:50 +03:00
Improved comment on serializer instantiation
This commit is contained in:
parent
9d8b176374
commit
e87a82b3fc
|
@ -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",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user