Re: Override Django ORM with virtual model class - is it possible or no?

2010-07-06 Thread test157
ok, I'll try to explain once again. I have real model class GenericModel(models.Model): val1 = models.CharField(max_length=50) val2 = models.CharField(max_length=80) it has its table in database like generic_model with fields like id | val1 | val2 the idea is just to create one this tabl

Override Django ORM with virtual model class - is it possible or no?

2010-07-06 Thread test157
hello, I need one solution so hope you can help me, e.g. I have this model class GenericModel(models.Model): val1 = models.CharField(max_length=50) val2 = models.CharField(max_length=80) and I need to create many virtual models based on this one above, so it will looks this way: class I