bruno desthuilliers wrote: > hello hello > > I must be a bit dumb, but I find myself a bit stucked with model > subclassing. Here's the problem: how does one call on the superclass > method when extending this method in the subclass ? ie: > > class Parent(meta.Model): > .... > def my_method(self): > do_something_here > > > class Derived(Parent): > .... > def _pre_save(self):
oops, typo, should be: def my_method(self): > do_some_other_things_here > Parent.my_method(self) # raises NameError, "Parent" is not defined > parents.Parent.my_method(self) # idem, "parents" is not defined > > -- bruno desthuilliers développeur [EMAIL PROTECTED] http://www.modulix.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---

