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 table and access this table by using other "virtual models", which will work like proxies for GenericModel. so I will create just "proxy" model class Info(models.Model): name = GenricModel.val1 address = GenericModel.val2 what will has also 2 fields what are proxied to Generic Model fields. so when I access Info.objects.filter(name='John') in real underneath it has to access GenericModel.objects.filter(val1='John') hope you can understand now -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.