Re: Multiple inheritance model

2010-11-22 Thread Marc Aymerich
On Sun, Nov 21, 2010 at 7:51 PM, Joseph (Driftwood Cove Designs) < powderfl...@gmail.com> wrote: > this is django.db.models.base.Model.save_base() > > a comment in the code for ModelA indicates the call to save_base() is > required for Mptt. > > Joseph, I think the problem here is the ModelA doesn

Re: Multiple inheritance model

2010-11-21 Thread Joseph (Driftwood Cove Designs)
this is django.db.models.base.Model.save_base() a comment in the code for ModelA indicates the call to save_base() is required for Mptt. On Nov 21, 5:43 am, Marc Aymerich wrote: > On Sun, Nov 21, 2010 at 5:31 AM, Joseph (Driftwood Cove Designs) < > > powderfl...@gmail.com> wrote: > > Below is th

Re: Multiple inheritance model

2010-11-21 Thread Marc Aymerich
On Sun, Nov 21, 2010 at 5:31 AM, Joseph (Driftwood Cove Designs) < powderfl...@gmail.com> wrote: > Below is the basic layout - I posted a simplified version of the two > model classes here: http://pastebin.com/Xc3KLrQx > > ModelA.save(): > if (some condition): > super().save_base() > Hi th

Re: Multiple inheritance model

2010-11-20 Thread Joseph (Driftwood Cove Designs)
Below is the basic layout - I posted a simplified version of the two model classes here: http://pastebin.com/Xc3KLrQx ModelA.save(): if (some condition): super().save_base() else: super().save() ModelB.save(): is_new_model = pk == None super().save() if (is_new_model):

Re: Multiple inheritance model

2010-11-20 Thread Marc Aymerich
On Sat, Nov 20, 2010 at 4:37 AM, Joseph (Driftwood Cove Designs) < powderfl...@gmail.com> wrote: > I'm trying to integrate two existing apps, both of which provide a > django Model - call them ModelA and ModelB - my app's model needs to > inherit from both of these. > I know django models support

Multiple inheritance model

2010-11-19 Thread Joseph (Driftwood Cove Designs)
I'm trying to integrate two existing apps, both of which provide a django Model - call them ModelA and ModelB - my app's model needs to inherit from both of these. I know django models support multiple inheritance, but both ModelA and ModelB define a Meta class, override the save() method, etc., so