Changeset 5170
- Timestamp:
- 05/07/07 22:56:44 (1 year ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/contrib/admin/templatetags/log.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r5167 r5170 71 71 ChaosKCW 72 72 ivan.chelubeev@gmail.com 73 Bryan Chow <bryan at verdjn dot com> 73 74 Ian Clelland <clelland@gmail.com> 74 75 crankycoder@gmail.com django/trunk/django/contrib/admin/templatetags/log.py
r2809 r5170 12 12 13 13 def render(self, context): 14 if self.user is not None and not self.user.isdigit(): 15 self.user = context[self.user].id 16 context[self.varname] = LogEntry.objects.filter(user__id__exact=self.user).select_related()[:self.limit] 14 if self.user is None: 15 context[self.varname] = LogEntry.objects.all().select_related()[:self.limit] 16 else: 17 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] 17 20 return '' 18 21
