Opened 19 years ago
Closed 19 years ago
#1780 closed defect (duplicate)
date_hierarchy broken for fields with null=True
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
see #1776