summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-08-30 19:19:11 -0700
committerTim Graham <timograham@gmail.com>2013-05-13 20:50:37 -0400
commit6297673efda48e72012da5ccea59d6b55cad3eff (patch)
tree1d80263dd8a44c18f18ad87d041c4bdece54e2db /docs
parentfbac080691760731319cefcb62617a9dd92af0af (diff)
[1.5.X] Fixed #18883 -- added a missing self parameter in the docs
Backport of 17d57275f9 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/instances.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index 6db096364d..1d893212e3 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