diff options
| author | Éric Araujo <merwok@netwok.org> | 2014-07-01 14:20:54 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-02 07:54:59 -0400 |
| commit | e88723acf8eb0c8f13a0285baea477ec8a40a3bd (patch) | |
| tree | ff9fc1f21b5c7d80affcf2db25c48784ee472556 /docs | |
| parent | bbba492fbb7351c68d7c94a390a77db342ff571d (diff) | |
[1.7.x] Removed non-existent reference to args/kwargs in manager docs.
Backport of 5842d8eba4 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/managers.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/topics/db/managers.txt b/docs/topics/db/managers.txt index ba9b76c880..f9ae66f45f 100644 --- a/docs/topics/db/managers.txt +++ b/docs/topics/db/managers.txt @@ -300,9 +300,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 @@ -311,14 +308,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: |
