Changes between Initial Version and Version 1 of Ticket #24770


Ignore:
Timestamp:
May 8, 2015, 7:46:25 AM (9 years ago)
Author:
Ian Foote
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24770 – Description

    initial v1  
    1 I ran across an odd interaction between `annotate`, `Sum`, `Case`, `When` and a reverse `ForeignKey`. I've prepared a [https://github.com/Ian-Foote/django-annotate-bug/blob/master/bug/tests/test_query.py#L10-L24 minimal testcase].
     1I ran across an odd interaction between `annotate`, `Sum`, `Case`, `When` and a reverse `ForeignKey`. I've prepared a [https://github.com/Ian-Foote/django-annotate-bug/blob/master/bug/tests/test_query.py#L10-L24 minimal testcase]. I expect the `Post` I created to be in the `queryset`, annotated with `0`, but instead the `queryset` is empty.
    22
    33The query generated by the annotate looks like:
Back to Top