From 9af4207b5e93059bea6e04cec92a55ea61018410 Mon Sep 17 00:00:00 2001 From: Thomas Uher Date: Fri, 13 Jan 2023 15:54:55 +0100 Subject: [PATCH] fix taxon search --- localcosmos_server/utils.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/localcosmos_server/utils.py b/localcosmos_server/utils.py index 3ca0064..82a4358 100644 --- a/localcosmos_server/utils.py +++ b/localcosmos_server/utils.py @@ -38,7 +38,7 @@ def api_filter_endpoints_hook(endpoints): def get_taxon_search_url(app, content=None): - if settings.LOCALCOSMOS_PRIVATE == False and content and content.__class__.__name__ == 'TemplateContent': + if settings.LOCALCOSMOS_PRIVATE == False: # and content and content.__class__.__name__ == 'TemplateContent': taxon_search_url = '/app-kit/searchtaxon/' else: taxon_search_url = reverse('search_app_taxon', kwargs={'app_uid':app.uid}) diff --git a/setup.py b/setup.py index a2d74e5..3437017 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( name='localcosmos_server', - version='0.12.7', + version='0.12.8', description='LocalCosmos Private Server. Run your own server for localcosmos.org apps.', long_description=long_description, long_description_content_type="text/markdown",