From 17d57275f991f001fbdbf4a85159244096f43499 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 30 Aug 2012 19:19:11 -0700 Subject: [PATCH] Fixed #18883 -- added a missing self parameter in the docs --- docs/ref/models/instances.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index b01abc1936..472ac96457 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -48,7 +48,7 @@ that, you need to :meth:`~Model.save()`. 2. Add a method on a custom manager (usually preferred):: class BookManager(models.Manager): - def create_book(title): + def create_book(self, title): book = self.create(title=title) # do something with the book return book