I'd personally try to get all of that stuff in _one_ database model if
possible, with a "type" char field. That makes queries and ordering very
easy.
Otherwise, yes, the next best option would be to have a database model that
holds the ordering information and is somehow related to each model.
Hello,
I am looking for some feedback on a seemingly simple problem.
My advertisement board project have 10+ models, one model per item
category (Cars, Pets, Apartments and so on). The common fields (title,
seller, location etc.) is defined in "MyAbstractModel" and inherited by
all other category
2 matches
Mail list logo