crucialfelix / django-ajax-selects

jQuery UI-powered auto-complete fields for ForeignKey, ManyToMany and text fields
Other
824 stars 248 forks source link

Django-ajax-selects and Django Rest Framework #293

Closed fabiociotoli closed 2 years ago

fabiociotoli commented 2 years ago

Does django-ajax-selects work with django rest framework?

Drf uses serializers and not forms so widgets cannot be defined - in this case is there any way to use it?

Thanks

crucialfelix commented 2 years ago

I don't think so, no. I used DRF a little bit earlier this year. It's a REST framework, so the UI is entirely up to the frontend application. There is no connection to the Django admin (which django-ajax-selects is based on)