Fixed bug on config view.

This commit is contained in:
Norman Jäckel 2016-06-06 14:19:57 +02:00
parent f2570551a1
commit 8c5c5dc556

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