diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2012-08-30 19:19:11 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2012-08-30 19:19:11 -0700 |
| commit | 17d57275f991f001fbdbf4a85159244096f43499 (patch) | |
| tree | dd7e4dcc8137cb6baaa855eb7b5927633a94f619 /docs | |
| parent | f698b973eaaf88bb5fb4bf263471305614d6c962 (diff) | |
Fixed #18883 -- added a missing self parameter in the docs
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/instances.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index b01abc1936..472ac96457 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 |
