Opened 9 years ago
Closed 9 years ago
#27481 closed Cleanup/optimization (fixed)
boolean annotation returns integer on SQLite
| Reported by: | Sergey Fedoseev | Owned by: | Sergey Fedoseev |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
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 , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 9 years ago
| Has patch: | set |
|---|
comment:3 by , 9 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.
PR