diff options
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  | 
