-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dropdown Empty #108
Comments
Had the same issue, setting the choices list on the ChoiceField rather than on the Select widget solved the issue for me (though I cannot figure how to apply style to the created widget) So your code would look something like this: Hope this helps! |
@Greg83480 Is your issue solved? Been a while since this ticket was created 😅 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'am using this form class to populate an dropdown list. My problem the dropdown is empty
class LeadModelForm(forms.ModelForm):
class Meta:
model = InstaProfile
fields = fields = 'all'
choices = Category.objects.all().values_list('name','name')
choice_list = []
If a i remove the crispy filter on my html template file is working
Any idea ?
Thank you
Greg
The text was updated successfully, but these errors were encountered: