On Fri, 2008-04-18 at 19:27 -0700, Benoit Caron wrote: > Hello, > > I'm working on my first "not-only-a-toy-for-learning" Django project. > > I'm building an app where my model have two objects that I want to > have a "notes" related object: a "Host" and a "Network" object, where > both could have a "Notes" object tied to it (so I could add notes > about this Host or Network in my app).
Generic relations are problably want you want to use here. See [1] and [2] and for details. [1] http://www.djangoproject.com/documentation/contenttypes/#generic-relations [2] http://www.djangoproject.com/documentation/models/generic_relations/ Regards, Malcolm -- The only substitute for good manners is fast reflexes. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---