aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2014-10-01 11:51:46 +0100
committerTom Christie2014-10-01 11:51:46 +0100
commitbb2222963f527638ed2bc9a817415102312e12e0 (patch)
treed1c8a6a7cbd8b2489ffc5708ca25a5475c3fff5f
parentda4900a353bd1136aa96cb5444b34f7beefa8e85 (diff)
parent770d63fb046917f9fe1f08449f07bf13f1adfa4f (diff)
downloaddjango-rest-framework-bb2222963f527638ed2bc9a817415102312e12e0.tar.bz2
Merge pull request #1911 from thedrow/patch-7
Fixed documentation typo
-rw-r--r--docs/topics/3.0-announcement.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/3.0-announcement.md b/docs/topics/3.0-announcement.md
index 1c7e016e..d2505a1b 100644
--- a/docs/topics/3.0-announcement.md
+++ b/docs/topics/3.0-announcement.md
@@ -75,7 +75,7 @@ Previously the serializers used a two-step object creation, as follows:
This style is in line with how the `ModelForm` class works in Django, but is problematic for a number of reasons:
-* Some data, such as many-to-many relationships, cannot be added to the object instance until after it has been save. This type of data needed to be hidden in some undocumentated state on the object instance, or kept as state on the serializer instance so that it could be used when `.save()` is called.
+* Some data, such as many-to-many relationships, cannot be added to the object instance until after it has been saved. This type of data needed to be hidden in some undocumentated state on the object instance, or kept as state on the serializer instance so that it could be used when `.save()` is called.
* Instantiating model instances directly means that you cannot use model manager classes for instance creation, eg `ExampleModel.objects.create(...)`. Manager classes are an excellent layer at which to enforce business logic and application-level data constraints.
* The two step process makes it unclear where to put deserialization logic. For example, should extra attributes such as the current user get added to the instance during object creation or during object save?