1. Andy Mikhailenko
  2. eav-django
Issue #7 resolved

Schema.get_choices doesn't return a list of name/title tuples

Adrien Lemaire
created an issue

get_choices return self.choices.all()

should return [(c.name, c.title) for c in self.choices.all()] Moreover, BaseChoice should include a name field.

If you don't want this behavior, and rather prefer people to implement it in the children that inherits BaseSchema and BaseChoice, then please update the get_choices docstring, thanks !

Comments (4)

  1. Adrien Lemaire reporter

    Hmmm that is annoying, the django admin tabular inline also calls for the get_choices() expecting a queryset.

    Well, then, I'll create a get_form_choices() in my child.

  2. Log in to comment