mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Correct typo in doc string.
This commit is contained in:
parent
f07a4f4ca3
commit
b82c44af48
|
@ -271,7 +271,7 @@ class BasicTests(TestCase):
|
||||||
Check _data attribute is cleared on `save()`
|
Check _data attribute is cleared on `save()`
|
||||||
|
|
||||||
Regression test for #1116
|
Regression test for #1116
|
||||||
— id field is not populated is `data` is accessed prior to `save()`
|
— id field is not populated if `data` is accessed prior to `save()`
|
||||||
"""
|
"""
|
||||||
serializer = ActionItemSerializer(self.actionitem)
|
serializer = ActionItemSerializer(self.actionitem)
|
||||||
self.assertIsNone(serializer.data.get('id',None), 'New instance. `id` should not be set.')
|
self.assertIsNone(serializer.data.get('id',None), 'New instance. `id` should not be set.')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user