mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-01 03:00:33 +00:00
This is based upon the feature in django-polymorphic, where you
can do:
SuperClass.objects.instance_of(SubClass)
This will result in only objects of the subclass being fetched.
Note: this works with any queryset, keeping the filtering and
ordering applied there.
|
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| choices.py | ||
| fields.py | ||
| managers.py | ||
| models.py | ||
| tracker.py | ||