Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Backport of 17d5727 from master
  • Loading branch information...
commit 6297673efda48e72012da5ccea59d6b55cad3eff 1 parent fbac080
Alex Gaynor alex authored timgraham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/models/instances.txt
2  docs/ref/models/instances.txt
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.