summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-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()