Skip to content

Commit

Permalink
Fixed #18883 -- added a missing self parameter in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Aug 31, 2012
1 parent f698b97 commit 17d5727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ref/models/instances.txt
Expand Up @@ -48,7 +48,7 @@ that, you need to :meth:`~Model.save()`.
2. Add a method on a custom manager (usually preferred):: 2. Add a method on a custom manager (usually preferred)::


class BookManager(models.Manager): class BookManager(models.Manager):
def create_book(title): def create_book(self, title):
book = self.create(title=title) book = self.create(title=title)
# do something with the book # do something with the book
return book return book
Expand Down

2 comments on commit 17d5727

@rehmetjan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job

@vickyi
Copy link

@vickyi vickyi commented on 17d5727 Aug 31, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very good

Please sign in to comment.