my ModelForm has a ForeignKey field which creates a select-option dropdown with 1000’s of options. This form is very slow and not so user-friendly. I know that in the Admin side I can (and have) use the raw_id_fields = ["…"] approach, see https://books.agiliq.com/projects/django-admin-cookbook/en/latest/many_fks.html
I’m hoping to achieve similar functionality in my form. Do you have any best practices or good suggestion on how to do this? My Django/Python skills are quite limited, so a simple example would be nice to have.