diff options
Diffstat (limited to 'ishtar_common/wizards.py')
| -rw-r--r-- | ishtar_common/wizards.py | 14 | 
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 \  | 
