Convert a list to queryset and override the one in modelAdmin
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 fails to a "database error" admin
screen if I return the list.
Is there something I can use to convert it?
Thanks.
--
Vinicius Massuchetto
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home