[1.5.X] Fixed #18883 -- added a missing self parameter in the docs

Backport of 17d57275f9 from master
This commit is contained in:
Alex Gaynor 2012-08-30 19:19:11 -07:00 committed by Tim Graham
parent fbac080691
commit 6297673efd
1 changed files with 1 additions and 1 deletions

View File

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