Merge pull request #2179 from normanjaeckel/FixConfig
Fixed bug on config view.
This commit is contained in:
commit
03ca4a8174
@ -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