I have the following snippet:
from decorators import before_save class User(Model): def before_save(self): pass @before_save def meth(self): pass It seems that when I try to decorate meth, it "uses" the instance method before_save, not the imported decorator. How can I still declare an instance method with the same name as a decorator and still be able to properly use both of them?
Shouldn't the decorator work as expected? How is it possible to refer to the before_save instance method just as before_save, without any reference to its class?