Closed jangeador closed 6 years ago
Thanks for catching this. I have fixed the error. The resulting pivot table will have two keys for the row foo
if it is a choice field, 'foo'
and 'get_foo_display'
, where the former has the raw database value and the latter has the display value.
Lesson learned about skimping on tests. :-)
It works. Thanks.
The fix for 1.6 that you described in #1 is not working. Here is a failing test showing the behavior. It says that the field (get_FOO_display()) is not found.
I wish I knew how to fix it, but my knowledge of how your module works is limited. Otherwise I would be happy to send you a PR.
And this is the error itself when I run the test above: