dojango
dojango copied to clipboard
QuerySet in a given list no working in query from grid
Hi all,
i'm trying to get a dataset from a query with __in, but i can't get it. I can get a query with __exact match:
{% datagrid mvd ine_seg %} list_display = ('nombdepto','nombloc','area','perimeter','codseg') query = {'codseg__exact':110111} {% enddatagrid %}
But when i try
{% datagrid mvd ine_seg %} list_display = ('nombdepto','nombloc','area','perimeter','codseg') query = {'codseg__in':[110111,110112]} {% enddatagrid %}
I don't get any row.
I tried to hardcode the query in dojango/views.py and it works ok.
Any clue?
TIA
saludos jaime