sorry for that, I didn't mean to post it twice times, I don't know how
to edit the 1st post, so in order to explain more clearly, I deleted
it before posting the second one.

Thanks Karen, I know the way to create the relationship with
symmetrical set to False, and using the intermediary model for extra
fields, my question is how to add extra fields if the relationship
should be symmetrical('symmetrical = True'), you know In Django it's
not allowed to use a intermediary model when the relationship is
symmetrical ('symmetrical = True').





On 10月6日, 下午10时00分, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 6, 2008 at 7:52 AM, Matrixer <[EMAIL PROTECTED]> wrote:
>
> > in django, it's not allowed to create an intermediary model, when
> > 'symmetrical' is set to True in this kind of many-to-many
> > relationship, then how to add more information for the relationship,
> > is there any good solutions for this, or do I have to use the
> > unsymemtrical one instead and do some extra work for it.
>
> (This is the 2nd time you've sent essentially the same message to this list
> twice in the span of a few minutes. As a result people may well spend time
> answering one copy and only later realize someone else answered the other
> one.  So please only send one copy and wait a reasonable interval for
> responses before resending.)
>
> Per the docs 
> (http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-o...),
> yes you must use symmetrical=False when defining a many-to-many relationship
> from a model to itself, using an intermediary model.  That's a pretty clear
> statement and I don't see any escape clause.  What extra work, exactly, does
> that mean for you?  A concrete example may people understand what problem
> this introduces for you.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to