For a document that contains a field with choices:
class UploadJob(Document):
status = StringField(choices=(("queued", "Queued"), ("in_progress", "In Progress"), ("completed", "Completed")))
What is the preferred method of finding UploadJob.objects.filter(status__in=['queued', 'in_progress']) using this library?
Currently, if I submit a QueryDict with ?status='in_progress'&status='queued', it resolves to status[], which is not picked up by Django filter as an __in query.
For a document that contains a field with choices:
What is the preferred method of finding
UploadJob.objects.filter(status__in=['queued', 'in_progress'])
using this library?Currently, if I submit a
QueryDict
with?status='in_progress'&status='queued'
, it resolves tostatus[]
, which is not picked up by Django filter as an__in
query.