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.