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 b
# this is my model
from django.db import models
from multiselectfield import MultiSelectField
TRACK_EVENTS_CHOICES = (
('100M', '100 Meter'),
('200M', '200 Meter'),
('400M', '400 Meter'),
('800M', '800 Meter'),
('1500M', '1500 Meter'),
('5000M', '5000 Meter'),
)
clas
2 matches
Mail list logo