#24183 closed Bug (fixed)
Bad comparison in Substr function
Reported by: | Claude Paroz | Owned by: | Josh Smeaton |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.8alpha1 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
The following line in django/db/models/functions.py
:
if not hasattr('length', 'resolve_expression')
should be:
if not hasattr(length, 'resolve_expression')
Change History (3)
comment:1 by , 10 years ago
Easy pickings: | set |
---|---|
Has patch: | set |
Owner: | changed from | to
Status: | new → assigned |
Triage Stage: | Accepted → Ready for checkin |
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/3954