Re: abstract model with save method

2009-05-25 Thread V
thanks, this was the problem V On May 25, 9:51 pm, Sam Chuparkoff wrote: > On Mon, 2009-05-25 at 09:42 -0700, Viktor wrote: > >         super(self.__class__, self).save(force_insert, force_update) > > This line at least is bad. You want: > >   super(AcceptedRoleAbstract, self).save(force_insert

Re: abstract model with save method

2009-05-25 Thread V
On May 25, 9:19 pm, Karen Tracey wrote: > On Mon, May 25, 2009 at 12:42 PM, Viktor wrote: > > > Hi, > > > I have the following abstract model, but it's child models fail saving > > with RuntimeError: maximum recursion depth exceeded > > When you get that error, it comes with a stack trace.  Does

Re: abstract model with save method

2009-05-25 Thread Sam Chuparkoff
On Mon, 2009-05-25 at 09:42 -0700, Viktor wrote: > super(self.__class__, self).save(force_insert, force_update) This line at least is bad. You want: super(AcceptedRoleAbstract, self).save(force_insert, force_update) Do post again as per Karen's request if you're still having trouble.

Re: abstract model with save method

2009-05-25 Thread Karen Tracey
On Mon, May 25, 2009 at 12:42 PM, Viktor wrote: > > Hi, > > I have the following abstract model, but it's child models fail saving > with RuntimeError: maximum recursion depth exceeded > When you get that error, it comes with a stack trace. Does that not make it clear how the code is getting in

abstract model with save method

2009-05-25 Thread Viktor
Hi, I have the following abstract model, but it's child models fail saving with RuntimeError: maximum recursion depth exceeded class AcceptedRoleAbstract(models.Model): ''' Represents a User that should accept a role E.g.: Discutant, Reviewer ''' user = models.OneToOneField(