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
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
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
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):
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
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
6 matches
Mail list logo