Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit ebb8ca1cd7c2833309c3febfb03ad9abbb074d37 1 parent f96f630
Russell Keith-Magee authored December 18, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/topics/serialization.txt
2  docs/topics/serialization.txt
@@ -264,7 +264,7 @@ name::
264 264
 
265 265
     class PersonManager(models.Manager):
266 266
         def get_by_natural_key(self, first_name, last_name):
267  
-            return self.filter(first_name=first_name, last_name=last_name)
  267
+            return self.get(first_name=first_name, last_name=last_name)
268 268
 
269 269
     class Person(models.Model):
270 270
         objects = PersonManager()

0 notes on commit ebb8ca1

Please sign in to comment.
Something went wrong with that request. Please try again.