mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-11 06:13:10 +00:00
more on code comments
This commit is contained in:
parent
000b32da50
commit
c4e003fdd9
2 changed files with 2 additions and 2 deletions
|
|
@ -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():
|
||||
|
|
|
|||
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue