Opened 8 years ago
Closed 8 years ago
#27481 closed Cleanup/optimization (fixed)
boolean annotation returns integer on SQLite
Description ¶
In [1]: from django.db.models import Value, BooleanField In [2]: from test_app.models import City In [3]: City.objects.annotate(bool=Value(True, output_field=BooleanField())).values('bool') Out[3]: <QuerySet [{'bool': 1}]>
Change History (4)
comment:1 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
Has patch: | set |
---|
comment:3 by , 8 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR