elf, *args, **kwargs):
do_something()
super(Car, self).save(*args, **kwargs)
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Daniel Roseman
Sent: 28 January 2011 11:36
To: django-users@googlegroups.com
Subject: Re: abstract base class and overwr
> The whole point of subclassing is that subclasses inherit models from the
> superclass. That's how the model save() method is definted in the first
> place, if you don't override it. What exactly are you having problems with?
It seems that my problems were due to another mistake of mine. I was
t
On Friday, January 28, 2011 9:21:48 AM UTC, Jaroslav Dobrek wrote:
>
> Hi,
>
> if I have got several models that have identical code, except for
> their save method, how can I use an abstract base class for them? Will
> I have to overwrite save() for each model? Or is there a generic way
> to d
3 matches
Mail list logo