Re: Crash/BUG: Models.annotate(...).exclude(...) gives AttributeError

2010-01-22 Thread Yuri Baburov
Hi Asgeir, Cool, thanks. According to http://docs.djangoproject.com/en/dev/internals/contributing/ , before someone will look closer at the problem, could you please create a) a ticket describing this problem, and b) create a test case demonstrating the problem? On Fri, Jan 22, 2010 at 7:04 PM,

Crash/BUG: Models.annotate(...).exclude(...) gives AttributeError

2010-01-22 Thread AsgeirM
The problem: When using annotate on a queryset from objects.all() and then using an exclude via a related table, accessing the queryset causes an AttributeError. Please note that excluding first, and then calling annotate works. This is however not possible in my case, because I want the annotate