Ticket #4200: get_admin_log.patch
File get_admin_log.patch, 809 bytes (added by , 18 years ago) |
---|
-
django/contrib/admin/templatetags/log.py
13 13 def render(self, context): 14 14 if self.user is not None and not self.user.isdigit(): 15 15 self.user = context[self.user].id 16 context[self.varname] = LogEntry.objects.filter(user__id__exact=self.user).select_related()[:self.limit] 16 if self.user is None: 17 context[self.varname] = LogEntry.objects.all().select_related()[:self.limit] 18 else: 19 context[self.varname] = LogEntry.objects.filter(user__id__exact=self.user).select_related()[:self.limit] 17 20 return '' 18 21 19 22 class DoGetAdminLog: