Re: Advice on template, list of objects from several models

2014-10-08 Thread Collin Anderson
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.

Advice on template, list of objects from several models

2014-10-07 Thread Anders
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