diff options
Diffstat (limited to 'archaeological_files/wizards.py')
-rw-r--r-- | archaeological_files/wizards.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/archaeological_files/wizards.py b/archaeological_files/wizards.py index 1558cd46e..e8d6ca9ae 100644 --- a/archaeological_files/wizards.py +++ b/archaeological_files/wizards.py @@ -20,8 +20,7 @@ from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.db.models import Max -from django.shortcuts import render_to_response -from django.template import RequestContext +from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from ishtar_common.forms import reverse_lazy @@ -134,9 +133,7 @@ class FileDeletionWizard(FileClosingWizard): for operation in Operation.objects.filter(associated_file=obj).all(): operation.delete() obj.delete() - return render_to_response( - 'ishtar/wizard/wizard_delete_done.html', {}, - context_instance=RequestContext(self.request)) + return render(self.request, 'ishtar/wizard/wizard_delete_done.html', {}) class FileAdministrativeActWizard(OperationAdministrativeActWizard): |