Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Many-to-many relationships with additional columns
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marty Alchin  
View profile  
 More options Sep 11 2007, 9:39 pm
From: "Marty Alchin" <gulop...@gamemusic.org>
Date: Tue, 11 Sep 2007 21:39:35 -0400
Local: Tues, Sep 11 2007 9:39 pm
Subject: Re: Many-to-many relationships with additional columns
On 9/11/07, Tai Lee <real.hu...@mrmachine.net> wrote:

> This seems to work, but is it missing out on some of the niceties /
> helper methods of the proposed M2M? What would be the benefits of the
> suggested new method over this?

Yes, that method works, and that's the recommended way to go for now,
but as for what it's missing, it's a little more subtle. It's not
missing any functionality, that much is true. What it's missing is the
ability to quickly get from one model to another, and have
relationship fields easily accessible.

With a standard M2M field, you can just use film.actors.all() and
actor.films.all(), but with the method you identified, there's another
level between the two. This may not be too bad for you and me, but
it's murder on template designers who shouldn't need to know about
those types of things.

As for the relationship fields, they're on a separate object which
also makes it quite unintuitive to somebody who's not familiar with
the inner workings.

What I'm working on is a way to provide the functional benefits of M2M
with relationship data (like your example), with the human-natural API
provided by the standard M2M field.

I hope that helps explain it.

-Gul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.