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