Opened 18 years ago

Closed 18 years ago

#3471 closed (duplicate)

Bad error message for misspelled query

Reported by: Dave Abrahams <dave@…> 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

Change History (1)

comment:1 by Malcolm Tredinnick, 18 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #2348 which has a patch and tests already.

Note: See TracTickets for help on using tickets.
Back to Top