I have the following query:
list = catalog['model'].objects.all().values(*catalog['id_label']).order_by('name')
and I have the following variable: filter='state=1'
How can I change all()
for filter()
, and make django to use the content of variable filter
as input for filter()
?