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
This commit is contained in:
Russell Keith-Magee 2009-12-18 00:32:10 +00:00
parent f96f63056b
commit ebb8ca1cd7
1 changed files with 1 additions and 1 deletions

View File

@ -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()