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 Info(models.Model):
name = GenricModel.val1
address = GenericModel.val2
class Details(models.Model):
size = GenricModel.val1
height = GenericModel.val2
e.t.c.
is it possible or no? so when I access Details or Info I have to work
with GenericModel - so it's some kind of proxy, but with overrided
field names.
anyone knows how to do it in Django? or it's impossible?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.