Ticket #8110: isdigitpatch.diff
File isdigitpatch.diff, 671 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/templatetags/log.py
14 14 if self.user is None: 15 15 context[self.varname] = LogEntry.objects.all().select_related()[:self.limit] 16 16 else: 17 if not s elf.user.isdigit():17 if not str(self.user).isdigit(): 18 18 self.user = context[self.user].id 19 19 context[self.varname] = LogEntry.objects.filter(user__id__exact=self.user).select_related()[:self.limit] 20 20 return ''