In the webapp platform of a web application, I can use a polymodel to create (for example) a goal model, and then a series of child models representing different types of goals that have different sets of fields depending on the type of goal they represent. This allows me to simply query objects goals and get back all child types.
Is there a way to duplicate this using django-nonrel models? A simple model inheritance doesn't seem to work, as django-nerel requires the base class to be abstract. Am I mistaken in this, or is there another way to achieve the same effect that I do not know about?
Edit: One of the possibilities that arises for me is to continue and use the regular inheritance of the django model, set the Goal base class for the abstract if necessary and create submodels, and then instead of trying to query the target objects, create a model for each user with ListField , which contains references to various objects of the subclass and obtaining ListField. Does this sound like a real alternative?
source share