summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-22 16:59:00 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-22 16:59:00 +0200
commit7870e9eb392a0ced9fa722e8a4c1e048075c04ff (patch)
tree608a87900972a8d227dabd864a669bd8bc1c633b /ishtar_common/wizards.py
parentee52553baad7d5b28a44e55a79104bbcf71e5ed1 (diff)
downloadIshtar-7870e9eb392a0ced9fa722e8a4c1e048075c04ff.tar.bz2
Ishtar-7870e9eb392a0ced9fa722e8a4c1e048075c04ff.zip
Bookmark: manage missing bookmark configuration
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 9a068063b..62bafdfe4 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1424,7 +1424,7 @@ class SearchWizard(IshtarWizard):
current_step = self.steps.current
bookmark = self.request.GET.get('bookmark', None)
default_search_vector = None
- if bookmark:
+ if bookmark and self.model:
try:
app_label = self.model.__module__.split('.')[0]
sq = models.SearchQuery.objects.get(
@@ -1444,6 +1444,18 @@ class SearchWizard(IshtarWizard):
return context
+class PersonSearch(SearchWizard):
+ model = models.Person
+
+
+class OrganizationSearch(SearchWizard):
+ model = models.Organization
+
+
+class DocumentSearch(SearchWizard):
+ model = models.Document
+
+
class DeletionWizard(Wizard):
def __init__(self, *args, **kwargs):
if (not hasattr(self, 'fields') or not self.fields) and \