Ticket #8110: 8110.diff

File 8110.diff, 778 bytes (added by Karen Tracey, 16 years ago)

Allow for render being called more than once for an AdminLogNode

  • django/contrib/admin/templatetags/log.py

     
    1515            context[self.varname] = LogEntry.objects.all().select_related()[:self.limit]
    1616        else:
    1717            if not self.user.isdigit():
    18                 self.user = context[self.user].id
    19             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]
    2020        return ''
    2121
    2222class DoGetAdminLog:
Back to Top