more on code comments

This commit is contained in:
Artur Barseghyan 2017-05-06 03:30:48 +02:00
parent 000b32da50
commit c4e003fdd9
2 changed files with 2 additions and 2 deletions

View file

@ -459,7 +459,7 @@ def assemble_serializer_class(form_entry,
"""Update method."""
# It's critical to assign the validated data to the instance,
# however we SHOULD NOT save it, since it will obviously make
# things break. All of this is done to fool the rest_framework
# things break. All of this is done to trick the rest_framework
# to make a profit of all the nice things that it provides
# with lowest cost possible.
for key, value in validated_data.items():

View file

@ -67,7 +67,7 @@ class FobiFormEntryViewSet(
# Setting all the fields, one by one like they were attributes of
# the object (while they are obviously NOT). It's all done just to
# fool the rest_framework and make a profit of all the nice things
# trick the rest_framework and make a profit of all the nice things
# it provides with as little efforts as possible. However, we NEVER
# save the object.
for field_name, field_instance in declared_fields.items():