diff options
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 84bd8ab2e..fa5abce22 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -2216,7 +2216,7 @@ class Operation( if can_add_cr and not is_locked: start = actions end = [] - if actions[-1] and actions[-1][0].startswith("/document/create"): + if actions and actions[-1] and actions[-1][0].startswith("/document/create"): start = actions[:-1] end = [actions[-1]] actions = start + [ |