diff options
Diffstat (limited to 'ishtar_common/wizards.py')
| -rw-r--r-- | ishtar_common/wizards.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 1ad394f25..30aa014c4 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -1494,12 +1494,16 @@ class SearchWizard(IshtarWizard):          bookmark = self.request.GET.get('bookmark', None)          default_search_vector = None          if bookmark and self.model: +            slug = self.model.SLUG +            if slug == "site": +                slug = "archaeologicalsite" +            app_label = self.model.__module__.split('.')[0]              try:                  app_label = self.model.__module__.split('.')[0]                  sq = models.SearchQuery.objects.get(                      pk=bookmark,                      content_type__app_label=app_label, -                    content_type__model=self.model.SLUG, +                    content_type__model=slug,                      profile__person__ishtaruser__user_ptr=self.request.user                  )                  default_search_vector = sq.query.replace('"', "''") | 
