Hi! I have cages filled with animals. All animals can move, but they do it all differently. Some animals even have attributes the others don't. Now i want all the animals in a cage to move.
How do i implement that in Django? First i thought i could use simple inheritance, serialize the attributes and save them to a TextField, but i have no idea where to unserialize them at fetchtime. So i figured that wouldn't be the best approach. So what i found out what i really want is an abstract animal base class. Now the Problem is how do i get them in the cage? I could use generic foreign keys, but in this case i would need one for every animal, which wouldn't work. So what am i missing here? How is it intended to be? Thanks for your help! Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---