Skip to content

Commit 224d8cf

Browse files
committed
Serializer._declared_fields enable modifying fields on a serializer
instance without affecting every other serializer instance.
1 parent c782376 commit 224d8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def get_fields(self):
384384
"""
385385
# Every new serializer is created with a clone of the field instances.
386386
# This allows users to dynamically modify the fields on a serializer
387-
# instance without affecting every other serializer class.
387+
# instance without affecting every other serializer instance.
388388
return copy.deepcopy(self._declared_fields)
389389

390390
def get_validators(self):

0 commit comments

Comments
 (0)