Code

Opened 8 years ago

Closed 8 years ago

#1780 closed defect (duplicate)

date_hierarchy broken for fields with null=True

Reported by: mdt@… Owned by: adrian
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: UI/UX:

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.

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by mdt

  • Resolution set to duplicate
  • Status changed from new to closed

see #1776

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.