Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 17d57275f991f001fbdbf4a85159244096f43499 1 parent f698b97
Alex Gaynor authored August 30, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/ref/models/instances.txt
2  docs/ref/models/instances.txt
@@ -48,7 +48,7 @@ that, you need to :meth:`~Model.save()`.
48 48
     2. Add a method on a custom manager (usually preferred)::
49 49
 
50 50
         class BookManager(models.Manager):
51  
-            def create_book(title):
  51
+            def create_book(self, title):
52 52
                 book = self.create(title=title)
53 53
                 # do something with the book
54 54
                 return book

2 notes on commit 17d5727

Rehmetjan Tursun

good job

Vic

very good

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