Django ForeignKey field name “check” raises SystemCheckError

2019-02-20 Thread Eric Palmitesta
The Django docs (https://docs.djangoproject.com/en/1.11/topics/db/models/#field-name-restrictions) state there are only two restrictions on model field names: 1. A field name cannot be a Python reserved word 2. A field name cannot contain more than one underscore in a row However, give

Why does Case/When ungroup the results of my values() annotate() query?

2017-09-13 Thread Eric Palmitesta
Hey all! I've posted my question to StackOverflow and asked in #django on freenode but haven't gotten any responses, so I guess this mailing list is my next stop. https://stackoverflow.com/questions/45802068/why-does-case-when-ungroup-the-results-of-my-values-annotate-query It appears when I i