Merge pull request #2179 from normanjaeckel/FixConfig

Fixed bug on config view.
This commit is contained in:
Norman Jäckel 2016-06-06 14:25:31 +02:00
commit 03ca4a8174

View File

@ -202,7 +202,7 @@ class ConfigVariable:
'help_text': self.help_text,
}
if self.input_type == 'choice':
data['choices'] = self.choices
data['choices'] = self.choices() if callable(self.choices) else self.choices
return data
def is_hidden(self):