formdef: do not include form_objects when doing a minimal export (#6972)
This commit is contained in:
parent
9eee1104c8
commit
3c573ef2fc
|
@ -767,8 +767,9 @@ class FormDef(StorableObject):
|
|||
def get_substitution_variables(self, minimal=False):
|
||||
d = {
|
||||
'form_name': self.name,
|
||||
'form_objects': FormDefSubstVar(self),
|
||||
}
|
||||
if not minimal:
|
||||
d['form_objects'] = FormDefSubstVar(self)
|
||||
if self.category:
|
||||
d.update(self.category.get_substitution_variables(minimal=minimal))
|
||||
d.update(self.get_variable_options())
|
||||
|
|
Loading…
Reference in New Issue