django/django — pull request #1165 by nott (2013-05-19 12:23:14+00:00)
Title: Ticket 20250

A negated Q along with an annotated queryset used to fail in Django 1.4. It is no more the case in Django 1.5.

This pull request contains a regression test in order not to face the issue again.

Please see https://code.djangoproject.com/ticket/20250 for more details.