Thursday, February 1, 2018

Re: querying multiselectcheckbox

Once you fixed the typo in your model name its
Participants.objects.filter(track_events__in=['100M', '200M']).values_list('Full_name')

And you should use single case for model name (Participant) and lower case for full_name as you did with the other attributes.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a31e79e1-4b35-4dba-901d-bd93a2d48068%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment