diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt index b33e4effe33..62b88693136 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()