diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-02-08 02:34:24 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-02-08 02:34:24 +0100 |
| commit | bb482fb0d9e54498785f1a16a984d92de6c8ea86 (patch) | |
| tree | 57dee09f66247af329e2aab0cea62b4b26165025 /archaeological_operations | |
| parent | 969eda7b6d5d8eafffab1279a223f9172f403837 (diff) | |
| parent | 89c66a92b539ab4cc682cf8c774dc65db6c3ba39 (diff) | |
| download | Ishtar-bb482fb0d9e54498785f1a16a984d92de6c8ea86.tar.bz2 Ishtar-bb482fb0d9e54498785f1a16a984d92de6c8ea86.zip | |
Merge branch 'master' into v0.9
Diffstat (limited to 'archaeological_operations')
| -rw-r--r-- | archaeological_operations/wizards.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index 2e7b3c4b4..6e512e826 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -329,6 +329,7 @@ class OperationSourceDeletionWizard(DeletionWizard): class OperationAdministrativeActWizard(OperationWizard): edit = False wizard_done_window = reverse_lazy('show-administrativeact') + current_obj_slug = 'administrativeactop' def get_reminder(self): form_key = 'selec-' + self.url_name @@ -416,6 +417,9 @@ class OperationAdministrativeActWizard(OperationWizard): if r and r[0]: dct['redirect'] = reverse('generatedoc-administrativeactop', args=[admact.pk, r[0]]) + # make the new object a default + self.request.session[self.current_obj_slug] = unicode(admact.pk) + self.request.session[self.get_object_name(admact)] = unicode(admact.pk) res = render_to_response('ishtar/wizard/wizard_done.html', dct, context_instance=RequestContext(self.request)) |
