Ticket #11576: filterspecs.py.2.patch
File filterspecs.py.2.patch, 582 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/filterspecs.py
120 120 '%s__month' % f.name: str(today.month)}), 121 121 (_('This year'), {'%s__year' % self.field.name: str(today.year)}) 122 122 ) 123 if self.field.null: 124 self.links += ((_('None'), {'%s__isnull' % self.field.name: 'True'}),) 123 125 124 126 def title(self): 125 127 return self.field.verbose_name