Fixed bug on config view.
This commit is contained in:
parent
f2570551a1
commit
8c5c5dc556
@ -202,7 +202,7 @@ class ConfigVariable:
|
|||||||
'help_text': self.help_text,
|
'help_text': self.help_text,
|
||||||
}
|
}
|
||||||
if self.input_type == 'choice':
|
if self.input_type == 'choice':
|
||||||
data['choices'] = self.choices
|
data['choices'] = self.choices() if callable(self.choices) else self.choices
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def is_hidden(self):
|
def is_hidden(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user