data-html attr functionality conflicting with create_field
natehawkboss opened this issue · 1 comments
natehawkboss commented
Hi, I am running into this issue:
When I add the attr "data-html: True", I lose the label for creating a new object based on the q.
Context:
- I am using select2 for a ModelChoiceField to allow for default choices with extra default info in a CharField with the option for custom entry
- I use a custom label to pass info via data for another field if you select an existing option
- I also override the create_object method to not actually save anything (do not want users to create new defaults)
These weird hacks do not appear to be the issue. The problem seems to be that using "create_field" and "data-html" causes some issue.
jpic commented
If you haven't solved this, can you open a PR with an example in the test_project?