google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

navigation object_list throws exception when user has more than one group #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- add a user to more than 1 group

Caught an exception while rendering: more than one row returned by a
subquery used as an expression
...
{% if object_list %} 

django 1.2, grapelli 2.0 rev689

Original issue reported on code.google.com by zal...@gmail.com on 2 Dec 2009 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by sehmaschine on 3 Dec 2009 at 2:38

GoogleCodeExporter commented 9 years ago
I am attaching my patch that took care of this problem - simply changing the Q()
object to use groups__in instead of groups=.  Hope it helps.

Original comment by ryates100 on 10 Dec 2009 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
thanks for the patch.

Original comment by sehmaschine on 18 Dec 2009 at 10:28