--- a/app/django/contrib/admin/templatetags/log.py Tue Oct 14 12:36:55 2008 +0000
+++ b/app/django/contrib/admin/templatetags/log.py Tue Oct 14 16:00:59 2008 +0000
@@ -12,11 +12,11 @@
def render(self, context):
if self.user is None:
- context[self.varname] = LogEntry.objects.all().select_related()[:self.limit]
+ context[self.varname] = LogEntry.objects.all().select_related('content_type', 'user')[:self.limit]
else:
if not self.user.isdigit():
self.user = context[self.user].id
- context[self.varname] = LogEntry.objects.filter(user__id__exact=self.user).select_related()[:self.limit]
+ context[self.varname] = LogEntry.objects.filter(user__id__exact=self.user).select_related('content_type', 'user')[:self.limit]
return ''
class DoGetAdminLog: