def static_method ( cls , f ) : setattr ( cls , f . __name__ , staticmethod ( f ) ) return f
python use staticmethod function in another staticmethod function
Decorator which dynamically binds static methods to the model for later use .
def static_method(cls, f):
        """Decorator which dynamically binds static methods to the model for later use."""
        setattr(cls, f.__name__, staticmethod(f))
        return f