django-autocomplete-light icon indicating copy to clipboard operation
django-autocomplete-light copied to clipboard

use get_display_label() as id for new choices in BaseQuerySetView.post()

Open dparter opened this issue 3 years ago • 1 comments
trafficstars

When a user adds a new value to choices as described at "Creation of new choices in the autocomplete form" the returned "id" is always result.pk

BaseQuerySetView.post() should set the id to self.get_result_value(result) for the case where the view is returning a different id.

dparter avatar Jun 29 '22 20:06 dparter

Agreed, do you want to make a pull request?

jpic avatar Sep 09 '22 17:09 jpic