Commit 53d9d629 authored by Paul Brown's avatar Paul Brown

use property name rather than db column name for form_choices

parent 65a2d5bc
...@@ -243,7 +243,7 @@ class AdminModelConverter(ModelConverterBase): ...@@ -243,7 +243,7 @@ class AdminModelConverter(ModelConverterBase):
form_choices = getattr(self.view, 'form_choices', None) form_choices = getattr(self.view, 'form_choices', None)
if mapper.class_ == self.view.model and form_choices: if mapper.class_ == self.view.model and form_choices:
choices = form_choices.get(column.key) choices = form_choices.get(prop.key)
if choices: if choices:
return form.Select2Field( return form.Select2Field(
choices=choices, choices=choices,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment