RajeshD ha escrito: > From what I understand, you want a generic ability to declare an owner > item for any model object. > > Django's generic relations work that way. Take a look at the examples > here: > > http://www.djangoproject.com/documentation/models/generic_relations/ > > Specially, instead of TaggedItem in that example, you could have an > ObjectOwner model class. And instead of TaggedItem.tag you would have > TaggedItem.owner_user > > Your other objects will not need an owner field anymore. They would be > like the Mineral class in the example linked above. > > Hope this gives you a starting point.
That's interesting, but I think that leaving the models untouched would be better. Do you think there is a different way? Thank you! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---