Opened 18 years ago
Closed 18 years ago
#3471 closed (duplicate)
Bad error message for misspelled query
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I wrote:
TimeDivision.objects.filter(when__ge=datetime(2007,5,14))
Note ge
instead of gte
.
The resulting error was:
UnboundLocalError: local variable 'new_opts' referenced before assignment
Note:
See TracTickets
for help on using tickets.
Duplicate of #2348 which has a patch and tests already.