diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-07-16 20:22:28 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-07-16 20:22:28 +0200 |
| commit | 6dde6c2bb035644f93df7c039531e688a680556d (patch) | |
| tree | f84bbffb810de129d860c1d86b643310261825b5 /archaeological_operations/wizards.py | |
| parent | 2402917f42ab1931e21d14d1b8c8d42a406c8b95 (diff) | |
| parent | e737bd2aa98ad908a533ba7a9e4793f581a61399 (diff) | |
| download | Ishtar-6dde6c2bb035644f93df7c039531e688a680556d.tar.bz2 Ishtar-6dde6c2bb035644f93df7c039531e688a680556d.zip | |
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_operations/wizards.py')
| -rw-r--r-- | archaeological_operations/wizards.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index c51b88d0b..ee8acd9c1 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2012-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2012-2016 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -411,7 +411,7 @@ class OperationAdministrativeActWizard(OperationWizard): if wizard_done_window: dct['wizard_done_window'] = wizard_done_window # redirect to the generated doc - if r and r[0]: + if r and type(r) in (tuple, list) and r[0]: dct['redirect'] = reverse('generatedoc-administrativeactop', args=[admact.pk, r[0]]) # make the new object a default |
