mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	magic-removal: Changed django.contrib.admin.templatetags.log to use new-style model import
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| from django.models.admin import log | ||||
| from django.contrib.admin.models import LogEntry | ||||
| from django.core import template | ||||
|  | ||||
| register = template.Library() | ||||
| @@ -13,7 +13,8 @@ class AdminLogNode(template.Node): | ||||
|     def render(self, context): | ||||
|         if self.user is not None and not self.user.isdigit(): | ||||
|             self.user = context[self.user].id | ||||
|         context[self.varname] = log.get_list(user__id__exact=self.user, limit=self.limit, select_related=True) | ||||
|         context[self.varname] = LogEntry.objects.get_list(user__id__exact=self.user, | ||||
|             limit=self.limit, select_related=True) | ||||
|         return '' | ||||
|  | ||||
| class DoGetAdminLog: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user