Skip to content
Browse files

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

Backport of 17d5727 from master
  • Loading branch information...
1 parent fbac080 commit 6297673efda48e72012da5ccea59d6b55cad3eff @alex alex committed with timgraham
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/ref/models/instances.txt
2 docs/ref/models/instances.txt
@@ -48,7 +48,7 @@ that, you need to :meth:``.
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

0 comments on commit 6297673

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