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
1 changed files with 1 additions and 1 deletions

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):