diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-12-27 22:35:21 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-12-27 22:38:39 +0100 |
commit | 9b5f5ca0a065c33db57670ba166b1424bcc18cd2 (patch) | |
tree | 58732af3c07cfc4833e314aad8610a7d84629cca /archaeological_operations/views.py | |
parent | 0bbb58bdf1cad93846bec23d2481e5ffffa818f8 (diff) | |
download | Ishtar-9b5f5ca0a065c33db57670ba166b1424bcc18cd2.tar.bz2 Ishtar-9b5f5ca0a065c33db57670ba166b1424bcc18cd2.zip |
Allow modification from the window (refs #1574)
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r-- | archaeological_operations/views.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index e2fa5c868..0c4609181 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -20,9 +20,10 @@ import json import os +from django.core.urlresolvers import reverse from django.db.models import Q from django.http import HttpResponse -from django.shortcuts import render_to_response +from django.shortcuts import render_to_response, redirect from django.template.defaultfilters import slugify from django.utils.translation import ugettext_lazy as _, pgettext_lazy @@ -227,6 +228,13 @@ operation_modification_wizard = OperationModificationWizard.as_view([ }, url_name='operation_modification',) +def operation_modify(request, pk): + view = operation_modification_wizard(request) + OperationModificationWizard.session_set_value(request, + 'selec-operation_modification', 'pk', pk, reset=True) + return redirect(reverse('operation_modification', + kwargs={'step':'general-operation_modification'})) + operation_closing_wizard = OperationClosingWizard.as_view([ ('selec-operation_closing', OperationFormSelection), ('date-operation_closing', ClosingDateFormSelection), |