On 10/23/07, Tim Perrett <[EMAIL PROTECTED]> wrote: > > I have a model called Partner which i would like to have-many Sites, > is this possible? Or is this too ingrained in the django code itself?
Sure - Site is just a model in the contrib 'sites' application, so you can import and reference the Site model just like you would for any other Many-to-many relation: from django.db import models from django.contrib.sites.models import Site class Partner(models.Model): ... your attributes here.... sites = models.ManyToManyField(Site) Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---