yourlabs / django-autocomplete-light

A fresh approach to autocomplete implementations, specially for Django. Status: v4 alpha, v3 stable, v2 & v1 deprecated.
https://django-autocomplete-light.readthedocs.io
MIT License
1.79k stars 467 forks source link

Use get_result_value when returning created object #1310

Closed matevz-ap closed 1 year ago

matevz-ap commented 1 year ago

This resolves https://github.com/yourlabs/django-autocomplete-light/issues/1300.

Currently the pk of new object is returned when a new option is created, regardless if you override get_result_value(). Use get_result_value() when returning new option from post()