From ebb8ca1cd7c2833309c3febfb03ad9abbb074d37 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 18 Dec 2009 00:32:10 +0000 Subject: [PATCH] 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 --- docs/topics/serialization.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()