Ticket #8110: 8110.diff
File 8110.diff, 778 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/templatetags/log.py
15 15 context[self.varname] = LogEntry.objects.all().select_related()[:self.limit] 16 16 else: 17 17 if not self.user.isdigit(): 18 self.user= context[self.user].id19 context[self.varname] = LogEntry.objects.filter(user__id__exact= self.user).select_related()[:self.limit]18 user_id = context[self.user].id 19 context[self.varname] = LogEntry.objects.filter(user__id__exact=user_id).select_related()[:self.limit] 20 20 return '' 21 21 22 22 class DoGetAdminLog: