summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2014-07-01 14:20:54 -0400
committerTim Graham <timograham@gmail.com>2014-07-02 07:54:02 -0400
commit5842d8eba454fdb9b276af343606e3b04e64091f (patch)
tree11bf170559f5f661ee51eadb89eb1506c9c95b07 /docs
parente9249bc20b49c7b6721a8a58bc4bb9dd4827855a (diff)
Removed non-existent reference to args/kwargs in manager docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/managers.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/topics/db/managers.txt b/docs/topics/db/managers.txt
index 705d721c8d..9e12166a76 100644
--- a/docs/topics/db/managers.txt
+++ b/docs/topics/db/managers.txt
@@ -296,9 +296,6 @@ returns a *subclass* of your base ``Manager`` with a copy of the custom
``QuerySet`` methods::
class BaseManager(models.Manager):
- def __init__(self, *args, **kwargs):
- ...
-
def manager_only_method(self):
return
@@ -307,14 +304,14 @@ returns a *subclass* of your base ``Manager`` with a copy of the custom
return
class MyModel(models.Model):
- objects = BaseManager.from_queryset(CustomQueryset)(*args, **kwargs)
+ objects = BaseManager.from_queryset(CustomQueryset)()
You may also store the generated class into a variable::
CustomManager = BaseManager.from_queryset(CustomQueryset)
class MyModel(models.Model):
- objects = CustomManager(*args, **kwargs)
+ objects = CustomManager()
.. _custom-managers-and-inheritance: