Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dataculex opened this issue Jan 11, 2013 · 0 comments
Open

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

dataculex opened this issue Jan 11, 2013 · 0 comments

Comments

@dataculex
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant