Manager
class¶
edgy.Manager
¶
Manager(*, owner=None, inherit=True, name='', instance=None)
Bases: BaseManager
Base Manager for the Edgy Models. To create a custom manager, the best approach is to inherit from the ModelManager.
Example
from saffier.managers import ModelManager
from saffier.models import Model
class MyCustomManager(ModelManager): ...
class MyOtherManager(ModelManager): ...
class MyModel(saffier.Model):
query = MyCustomManager()
active = MyOtherManager()
...
PARAMETER | DESCRIPTION |
---|---|
owner |
TYPE:
|
inherit |
TYPE:
|
name |
TYPE:
|
instance |
TYPE:
|
Source code in edgy/core/db/models/managers.py
11 12 13 14 15 16 17 18 19 20 21 22 |
|
get_queryset
¶
get_queryset()
Returns the queryset object.
Checks for a global possible tenant and returns the corresponding queryset.
Source code in edgy/core/db/models/managers.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|