Re: ManyRelatedManager with explicit intermediary model

2011-09-21 Thread Russell Keith-Magee
2011/9/20 Łukasz Rekucki : > On 20 September 2011 15:52, Roald de Vries wrote: >> Hi all, >> >> Is there a fundamental reason that I'm missing (other than "nobody's taken >> the trouble of writing it") that I can't do the following? If there isn't >> I'll create a ticket for it. >> >>    class R(M

Re: ManyRelatedManager with explicit intermediary model

2011-09-21 Thread Roald de Vries
On Sep 20, 2011, at 5:50 PM, Tom Evans wrote: On Tue, Sep 20, 2011 at 4:12 PM, Roald de Vries wrote: I don't see how this is different from the create method on the intermediary model. Cheers, Roald PS: I found an open ticket on this, https://code.djangoproject.com/ticket/9475 Here

Re: ManyRelatedManager with explicit intermediary model

2011-09-20 Thread Tom Evans
On Tue, Sep 20, 2011 at 4:12 PM, Roald de Vries wrote: > > I don't see how this is different from the create method on the intermediary > model. > > Cheers, Roald > > PS: I found an open ticket on this, > https://code.djangoproject.com/ticket/9475 > Here is the function definition for add() on re

Re: ManyRelatedManager with explicit intermediary model

2011-09-20 Thread Johannes Dollinger
Am 20.09.2011 um 15:57 schrieb Łukasz Rekucki: > On 20 September 2011 15:52, Roald de Vries wrote: >> Hi all, >> >> Is there a fundamental reason that I'm missing (other than "nobody's taken >> the trouble of writing it") that I can't do the following? If there isn't >> I'll create a ticket for

Re: ManyRelatedManager with explicit intermediary model

2011-09-20 Thread Roald de Vries
On Sep 20, 2011, at 4:23 PM, Stephan Jaensch wrote: Am 20.09.2011 um 15:52 schrieb Roald de Vries: Is there a fundamental reason that I'm missing (other than "nobody's taken the trouble of writing it") that I can't do the following? If there isn't I'll create a ticket for it. class R(

Re: ManyRelatedManager with explicit intermediary model

2011-09-20 Thread Stephan Jaensch
Hi Roald, Am 20.09.2011 um 15:52 schrieb Roald de Vries: > Hi all, > > Is there a fundamental reason that I'm missing (other than "nobody's taken > the trouble of writing it") that I can't do the following? If there isn't > I'll create a ticket for it. > >class R(Model): >user =

Re: ManyRelatedManager with explicit intermediary model

2011-09-20 Thread Łukasz Rekucki
On 20 September 2011 15:52, Roald de Vries wrote: > Hi all, > > Is there a fundamental reason that I'm missing (other than "nobody's taken > the trouble of writing it") that I can't do the following? If there isn't > I'll create a ticket for it. > >    class R(Model): >        user = ForeignKey(Us

ManyRelatedManager with explicit intermediary model

2011-09-20 Thread Roald de Vries
Hi all, Is there a fundamental reason that I'm missing (other than "nobody's taken the trouble of writing it") that I can't do the following? If there isn't I'll create a ticket for it. class R(Model): user = ForeignKey(User) my_model = ForeignKey('MyModel') comm