Ticket #8110: isdigitpatch.diff

File isdigitpatch.diff, 671 bytes (added by Julian Bez, 16 years ago)

Since isdigit only works with strings we make it a string

  • django/contrib/admin/templatetags/log.py

     
    1414        if self.user is None:
    1515            context[self.varname] = LogEntry.objects.all().select_related()[:self.limit]
    1616        else:
    17             if not self.user.isdigit():
     17            if not str(self.user).isdigit():
    1818                self.user = context[self.user].id
    1919            context[self.varname] = LogEntry.objects.filter(user__id__exact=self.user).select_related()[:self.limit]
    2020        return ''
Back to Top