Ticket #11576: filterspecs.py.2.patch

File filterspecs.py.2.patch, 582 bytes (added by twiinz@…, 15 years ago)

Proper SVN patch

  • django/contrib/admin/filterspecs.py

     
    120120                             '%s__month' % f.name: str(today.month)}),
    121121            (_('This year'), {'%s__year' % self.field.name: str(today.year)})
    122122        )
     123        if self.field.null:
     124            self.links += ((_('None'), {'%s__isnull' % self.field.name: 'True'}),)
    123125
    124126    def title(self):
    125127        return self.field.verbose_name
Back to Top