Opened 19 years ago

Closed 19 years ago

#1780 closed defect (duplicate)

date_hierarchy broken for fields with null=True

Reported by: mdt@… Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal 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

djando rev#2855 gives error

   global name 'date_query' is not defined

in django/db/models/query.py:492:

   date_query._where.append('%s.%s IS NOT NULL' % 
   ...

replace date_query with self and everything's fine.

Change History (1)

comment:1 by mdt, 19 years ago

Resolution: duplicate
Status: newclosed

see #1776

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