-
Notifications
You must be signed in to change notification settings - Fork 158
Closed
Description
Hi!
I have a Place model with subclasses Restaurant and Bar. I attached InheritanceManager from django-model-utils to Place to use the select_subclasses() method to get instances of the subclass.
from model_utils.managers import InheritanceManager
class Place(models.Model):
# ...
objects = InheritanceManager()
class Restaurant(Place):
# ...
class Bar(Place):
# ...
Everything worked fine. But now I want to set the order of the model Place.
...
objects = OrderedModelManager()
...
How to combine them?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels