magic-removal: Removed _get_mod_opts() call in django.contrib.admin.views.main.history

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-01-19 00:32:47 +00:00
parent 9f4d2d5d27
commit f1a33994f4
1 changed files with 2 additions and 4 deletions

View File

@ -481,7 +481,6 @@ def _get_deleted_objects(deleted_objects, perms_needed, user, obj, opts, current
def delete_stage(request, path, object_id):
import sets
#mod, opts = _get_mod_opts(app_label, module_name)
model, app_label = get_model_and_app(path)
opts = model._meta
if not request.user.has_perm(app_label + '.' + opts.get_delete_permission()):
@ -512,7 +511,6 @@ def delete_stage(request, path, object_id):
delete_stage = staff_member_required(delete_stage)
def history(request, app_label, module_name, object_id):
mod, opts = _get_mod_opts(app_label, module_name)
action_list = LogEntry.objects.get_list(object_id__exact=object_id, content_type__id__exact=opts.get_content_type_id(),
order_by=("action_time",), select_related=True)
# If no history was found, see whether this object even exists.