As I see, we can apply autocomplete_fields for ForeignKey field on admin.py as the figure below. Employee model is ForeignKey field on Incident_Detail Model.
Apparently , we can search employee name on dropdowlist in admin page as figure shown in below.
My requirement is that
I want to implement autocomplete on dropdown list of ForeignKey field like admin.py on my custom page.
How to configure and code in views,py , forms.py , urls.py and ,mycustom_templete.html
Anyone can advise guidelines or sample code?
The figure below is my custom form.
Thank you a lot.