Re: Convert a list to queryset and override the one in modelAdmin

2011-02-21 Thread Vinicius Massuchetto
2011/2/21 Vinicius Massuchetto : > 2011/2/21 Daniel Roseman : >> On Monday, February 21, 2011 5:47:42 PM UTC, Vinicius Massuchetto wrote: > >> You can't "convert" a list to queryset, as a queryset is - as the name >> implies - a database query. > > I imagined that. =/ > >> What you could do is get

Re: Convert a list to queryset and override the one in modelAdmin

2011-02-21 Thread Vinicius Massuchetto
2011/2/21 Daniel Roseman : > On Monday, February 21, 2011 5:47:42 PM UTC, Vinicius Massuchetto wrote: > You can't "convert" a list to queryset, as a queryset is - as the name > implies - a database query. I imagined that. =/ > What you could do is get all the IDs from the list and pass that into

Re: Convert a list to queryset and override the one in modelAdmin

2011-02-21 Thread Daniel Roseman
On Monday, February 21, 2011 5:47:42 PM UTC, Vinicius Massuchetto wrote: > > Hi. > > I know that's not exactly the proper way of building a queryset, but I > managed to build a list of objects of a model across operations and > annotations, and I want to show that an admin change list. > > I'm curr

Convert a list to queryset and override the one in modelAdmin

2011-02-21 Thread Vinicius Massuchetto
Hi. I know that's not exactly the proper way of building a queryset, but I managed to build a list of objects of a model across operations and annotations, and I want to show that an admin change list. I'm currently declaring a queryset() method in modelAdmin, and building this list there, but it