Commit 17d57275 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

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

parent f698b973
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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