Skip to content
Browse files

Fixed #18883 -- added a missing self parameter in the docs

  • Loading branch information...
1 parent f698b97 commit 17d57275f991f001fbdbf4a85159244096f43499 @alex alex committed
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

2 comments on commit 17d5727


good job


very good

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