Open David-Keeffe opened 3 years ago
Did you manage to solve your problem? I was having the same issue and solved it by "stringifying" my values (and also field names in my cases).
I'm here with the same issue. It works when I want to create an instance. When I retrieve an existent one, the field is always blank, I have to re-add the option before saving it.
I'm trying the new separated value/display code in autocomplete.ListSelect2, and I'm finding it hard to pass a value that actually selects the item out of the supplied list. It always shows an empty box. I'm trying to manage a rather convoluted address model, so just using a queryset isn't practical. I have to fill the form with raw textual data so just passing object IDs isn't on. However, we do need the object ID if one matches. .... (I said it was convoluted)
It also seems that the subclass (CareofSelectField) validate isn't getting called.