1👍
✅
Do you mean something like this?:
contact_type = forms.ModelChoiceField(queryset=ContactType.objects.all())
More about ModelChoiceField
on Django’s documentation
- [Answered ]-Nested Json with multipart/form-data in AFNetworking 2.x
- [Answered ]-Filter Queryset by field in OnetoOne model
- [Answered ]-Uwsgi: connection refused when running from startup script
- [Answered ]-Bad Performance in my code
Source:stackexchange.com