summaryrefslogtreecommitdiff
path: root/docs/topics/serialization.txt
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-12-18 00:32:10 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-12-18 00:32:10 +0000
commitebb8ca1cd7c2833309c3febfb03ad9abbb074d37 (patch)
tree4f83c31fb2fd02b15b295402beaf8ba93765b57f /docs/topics/serialization.txt
parentf96f63056bfe5ee799b82fe808c2e84286b7a302 (diff)
Corrected an example in the natural key serialization docs. Thanks to Alex Gaynor for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11907 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/serialization.txt')
-rw-r--r--docs/topics/serialization.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt
index b33e4effe3..62b8869313 100644
--- a/docs/topics/serialization.txt
+++ b/docs/topics/serialization.txt
@@ -264,7 +264,7 @@ name::
class PersonManager(models.Manager):
def get_by_natural_key(self, first_name, last_name):
- return self.filter(first_name=first_name, last_name=last_name)
+ return self.get(first_name=first_name, last_name=last_name)
class Person(models.Model):
objects = PersonManager()