def render(self, action_url=None): if action_url: self.action_url = action_url return _Form.render(self)
def __init__(self, action_url=None, *args, **kwargs): _Form.__init__(self, action=action_url, *args, **kwargs) self.cancel_url = None self.action_url = self.action