Re: can contrib.sites.models (Site) belong to an application model?

2007-10-23 Thread Tim Perrett
For sure, ive been playing with it and have seen that I can have one- to-many (Site has-many Partners) and ManyToMany, but I was looking to have it so that one partner has many sites? Is the ManyToMany the only way to do this? As in terms of a DB schema, its not a many to many relationship.

Re: can contrib.sites.models (Site) belong to an application model?

2007-10-23 Thread Russell Keith-Magee
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

can contrib.sites.models (Site) belong to an application model?

2007-10-22 Thread Tim Perrett
Hey all Just a quick one that I dont seem to be able to find anywhere in the documentation; Is it possible for one of my app models to have-many sites? 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?