From c4e003fdd99413b7fafee70734ee274a8493e7f3 Mon Sep 17 00:00:00 2001 From: Artur Barseghyan Date: Sat, 6 May 2017 03:30:48 +0200 Subject: [PATCH] more on code comments --- src/fobi/contrib/apps/drf_integration/dynamic.py | 2 +- src/fobi/contrib/apps/drf_integration/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fobi/contrib/apps/drf_integration/dynamic.py b/src/fobi/contrib/apps/drf_integration/dynamic.py index 1059b600..6b99bbed 100644 --- a/src/fobi/contrib/apps/drf_integration/dynamic.py +++ b/src/fobi/contrib/apps/drf_integration/dynamic.py @@ -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(): diff --git a/src/fobi/contrib/apps/drf_integration/views.py b/src/fobi/contrib/apps/drf_integration/views.py index a061f118..90660e55 100644 --- a/src/fobi/contrib/apps/drf_integration/views.py +++ b/src/fobi/contrib/apps/drf_integration/views.py @@ -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():