From: "Russell Keith-Magee" <freakboy3...@gmail.com>
Date: Fri, 1 Jun 2007 09:32:38 +0800
Local: Thurs, May 31 2007 9:32 pm
Subject: Re: Many-to-many relationships with additional columns
On 6/1/07, Marty Alchin <gulop...@gamemusic.org> wrote:
> My main reason for bringing it here, however, is to ask if there are that domain. Mostly because _I'm_ completely off my rocker, most of the time :-). However, you're not the first to propose this. In fact, I would doubt This is the first time that I've seen a viable mechanism for Actor.objects.filter(films__title='Fight Club') Your suggestion seems to be more on the lines of pseudo-adding the Actor.objects.filter(films__title='Fight Club') This are still some namespace clash problems, but they're much smaller To add to your proposal, I would say that the pseudo-attribute should Actor.objects.filter(film_roles__role='Tyler Durden') Specifically, this is avoid problems when you have two m2m relations Regarding syntax; Jacob's suggestion is the usual suggested syntax for So, put me down as a +1, but with Jacob's syntax (or a variation therof). Yours, 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.
| ||||||||||||||
