Skip to content

Commit

Permalink
remove LAZY_TAXONOMY_SOURCES from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
biodiv committed Nov 1, 2022
1 parent 614a22d commit 42b2a33
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions localcosmos_server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'

LAZY_TAXONOMY_SOURCES = []

AUTHENTICATION_BACKENDS = (
'rules.permissions.ObjectPermissionBackend',
'django.contrib.auth.backends.ModelBackend',
Expand Down
3 changes: 2 additions & 1 deletion localcosmos_server/taxonomy/lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def get_taxon_source(self, instance):
#self.taxon_source = 'taxonomy.sources.%s' % instance._meta.app_label

if taxon_source not in SUPPORTED_LAZY_TAXONOMY_SOURCES:
raise ValueError('unsupported taxonomic source passed to LazyTaxon: {0}'.format(taxon_source))
supported_taxonomic_sources = ','.join(SUPPORTED_LAZY_TAXONOMY_SOURCES)
raise ValueError('unsupported taxonomic source passed to LazyTaxon. {0} not in {1}'.format(taxon_source, supported_taxonomic_sources))

return taxon_source

Expand Down
4 changes: 2 additions & 2 deletions localcosmos_server/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
path('api/', include('localcosmos_server.online_content.api.urls')),
path('api/anycluster/', include('localcosmos_server.anycluster_schema_urls')),

path('schema/', SpectacularAPIView.as_view(), name='schema'),
path('docs/', SpectacularSwaggerView.as_view(template_name='swagger-ui.html', url_name='schema'), name='swagger-ui'),
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path('api/docs/', SpectacularSwaggerView.as_view(template_name='swagger-ui.html', url_name='schema'), name='swagger-ui'),
]

if getattr(settings, 'LOCALCOSMOS_ENABLE_GOOGLE_CLOUD_API', False) == True:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setup(
name='localcosmos_server',
version='0.10.4',
version='0.11.0',
description='LocalCosmos Private Server. Run your own server for localcosmos.org apps.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 42b2a33

Please sign in to comment.