2👍
✅
Since are using a model multiple choice field, you should use a regular queryset instead of values()
.
thedomains = Domain.objects.all()
self.fields["skills"] = forms.ModelMultipleChoiceField(queryset=thedomains, widget=forms.CheckboxSelectMultiple())
- [Answered ]-How to display the post user created with {% if user.is_authenticated == post.author %}?
Source:stackexchange.com