summaryrefslogtreecommitdiff
path: root/archaeological_finds/wizards.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r--archaeological_finds/wizards.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py
index 91795d60e..d6647b81c 100644
--- a/archaeological_finds/wizards.py
+++ b/archaeological_finds/wizards.py
@@ -19,7 +19,7 @@
from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist, PermissionDenied
-from ishtar_common.utils import ugettext_lazy as _, pgettext
+from ishtar_common.utils import ugettext_lazy as _, pgettext, get_current_profile
from ishtar_common.forms import reverse_lazy
from ishtar_common.wizards import (
@@ -86,6 +86,10 @@ class FindWizard(Wizard):
"""
context = super(FindWizard, self).get_context_data(form, **kwargs)
current_cr = self.get_current_contextrecord()
+ if self.steps.current.startswith("selec"):
+ profile = get_current_profile()
+ if profile.no_context_button_id:
+ context["no_context_cr"] = profile.no_context_button_id
if not current_cr or self.steps.current.startswith("select-"):
return context
context["reminders"] = (