thanks Karen, and sorry about my poor English
for example, the Friedship between the Users should be symmetrical, if
I need more fields(as columns in db table) for the relationship, such
as create_date, per the docs, I should set symmetrical to False and
use a intermediary model class, add create_date to the model, but then
the relationship become unsymmetrical.
what I meant in the first note is to use the unsymmetrical
relationship and do some extra work to treat it as symmetrical when
using the db records.
If my explanation is still not clear enough, just forget about my
posts, I will think about taking some English practice -_-||
thanks again!
On Oct 7, 12:50 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 6, 2008 at 11:08 AM, Matrixer <[EMAIL PROTECTED]> wrote:
>
> > 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').
>
> I'm sorry, I'm still missing what problem exactly you are trying to solve
> here. Per the docs, as you seem to know, the answer is you cannot specify
> symmetrical=True on a ManyToMany relation to self via an intermediate table
> specified via 'through'. There is no magic bit to set somewhere to change
> that, so what I am trying to get at is what problem this restriction causes
> for you? If you spell that out someone may be able to help fix it. You
> mention 'extra work' in your first note, so perhaps you already know the
> specifics of how to get around whatever problem symmetrical=False introduces
> and are just asking to see if there is an easier way. But if so, nobody can
> answer that question with any assurance because you haven't spelled out the
> 'extra work' you are having to do.
>
> 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
-~----------~----~----~----~------~----~------~--~---