Skip to content

QuerySet in a given list no working in query from grid  #108

@dataculex

Description

@dataculex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions