On 5/12/07, checco <[EMAIL PROTECTED]> wrote:
> into a QuerySet? Or maybe there is a way to pass to the object_list
> view directly the list of objects as returned by the SQL statement
> (with cursor.fetchall())?
If you've got the list of ids, you can use an 'id__in' lookup to get a
QuerySet out
I want to make a generic object_list view and for some reasons I can't
directly generate the QuerySet (which is a necessary parameter of the
object_list) but I can retrieve the list of objects I want to display
using a raw SQL statement. As I still want to use the object_list
view, which needs a Q
2 matches
Mail list logo