def hidden_tag_without(self, *fields): fields = [ isinstance(f, string_types) and getattr(self, f) or f for f in fields ] keep_fields = [f for f in self if _is_hidden(f) and f not in fields] return BaseForm.hidden_tag(self, *keep_fields)
def hidden_tag_without(self, *exclude_fields): fields = [ getattr(self, f) if isinstance(f, string_types) else f for f in exclude_fields ] keep_fields = [f for f in self if _is_hidden(f) and f not in fields] return BaseForm.hidden_tag(self, *keep_fields)
def hidden_tag_without(self, *exclude_fields): fields = [getattr(self, f) if isinstance(f, string_types) else f for f in exclude_fields] keep_fields = [f for f in self if _is_hidden(f) and f not in fields] return BaseForm.hidden_tag(self, *keep_fields)
def hidden_tag(self, *args, **kwargs): self.form_name.data = self._form_name return Form.hidden_tag(self, *args, **kwargs)
def hidden_tag_without(self, *fields): fields = [isinstance(f, string_types) and getattr(self, f) or f for f in fields] keep_fields = [f for f in self if _is_hidden(f) and f not in fields] return BaseForm.hidden_tag(self, *keep_fields)