In addition to what Kyle said I've also noticed I had to 'pop' custom
kwargs before passing to the super since it isn't expecting them.
try:
t = kwargs.pop('title')
except:
...
call super
... do stuff.
On Mar 27, 10:20 am, "Kyle Fox" <[EMAIL PROTECTED]> wrote:
> This is just a guess, but
This is just a guess, but could it be because you're calling .save()
(defined in models.Model) before calling __init__() on the superclass?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
I'd like to be able to "catch" when creating a new object... fix a
few things up then let the normal thing happen... for example...
class myObj(models.model):
def __init__(self, **kwargs):
t = kwargs['title']
t =
3 matches
Mail list logo