Re: Many-to-many relationships with additional columns

2007-09-11 Thread Marty Alchin
On 9/11/07, Tai Lee <[EMAIL PROTECTED]> 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

Re: Many-to-many relationships with additional columns

2007-09-11 Thread Tai Lee
I think I'd like to see this functionality in trunk, too. Previously when I needed a M2M model with sequence or other data, I just created the M2M model explicitly with ForeignKey fields to the two related models. class Role(models.Model): role = models.CharField(maxlength=255) c

Re: Many-to-many relationships with additional columns

2007-09-10 Thread Marty Alchin
On 9/10/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > Marty's suggestion looks promising and seems to have a good bit of > support from the core devs. It's been a few months, and I am > wondering if there has been any movement on this. This particular item has been low on my list of prioritie

Re: Many-to-many relationships with additional columns

2007-09-10 Thread Benjamin Slavin
Hello all, On 6/1/07, Marty Alchin <[EMAIL PROTECTED]> wrote: > So, there's a bit more to chew on; hopefully we can come up with some > final thoughts on this soon, because I'd love to see this happen. Marty's suggestion looks promising and seems to have a good bit of support from the core devs.

Re: Many-to-many relationships with additional columns

2007-06-01 Thread Marty Alchin
On 5/31/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > However, you're not the first to propose this. In fact, I would doubt > that you are even the tenth. This is a pretty common request. Yeah, I know I had seen at least one mention of it before, and I figured it was fairly common. I was j

Re: Many-to-many relationships with additional columns

2007-05-31 Thread Russell Keith-Magee
On 6/1/07, Marty Alchin <[EMAIL PROTECTED]> wrote: > > My main reason for bringing it here, however, is to ask if there are > indeed some previous discussions that I should consider before I go to > far in my experiments on this subject. Or if I'm just completely off > my rocker. You may well be

Re: Many-to-many relationships with additional columns

2007-05-31 Thread oggie rob
Yeah! This is much cleaner. I need to add ordering to some model relations (i.e. represent all related values as an ordered list, where relations can be shifted up & down) to the M2M field, it looks like it would fit much easier using a manager & concrete Model subclass than being restricted to a

Re: Many-to-many relationships with additional columns

2007-05-31 Thread Jacob Kaplan-Moss
On 5/31/07, Marty Alchin <[EMAIL PROTECTED]> wrote: > [1] http://code.djangoproject.com/wiki/ManyToManyManager +1. No, wait, + a whole lot more than that! I've been wanting explicit M2M join objects for quite some time; this is a pretty neat way to accomplish it. Just for shits and giggles, her

Many-to-many relationships with additional columns

2007-05-31 Thread Marty Alchin
I've been giving a bit of thought into many-to-many relationships lately, and I (once again) ran across the task of creating a relationship that contained additional information. I know this has been bounced around before, but I can't seem to find any substantial discussions on the topic, so I wro