diff --git a/config/settings/base.py b/config/settings/base.py index 459da0b6..db009e35 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -22,7 +22,7 @@ env = environ.Env() # .env file, should load only in development environment -READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) +READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', False) if READ_DOT_ENV_FILE: # Operating System Environment variables have precedence over variables @@ -157,7 +157,7 @@ # See: https://docs.djangoproject.com/en/3.2/ref/settings/#databases # Uses django-environ to accept uri format # See: https://django-environ.readthedocs.io/en/latest/#supported-types -DATABASES = {'default': env.db('DATABASE_URL', default='postgres:///sodar')} +DATABASES = {'default': env.db('DATABASE_URL', 'postgres:///sodar')} DATABASES['default']['ATOMIC_REQUESTS'] = False # Set default auto field (for Django 3.2+) diff --git a/config/settings/local.py b/config/settings/local.py index 74ce43d2..7ffc301b 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -16,7 +16,7 @@ # DEBUG # ------------------------------------------------------------------------------ -DEBUG = env.bool('DJANGO_DEBUG', default=True) +DEBUG = env.bool('DJANGO_DEBUG', True) TEMPLATES[0]['OPTIONS']['debug'] = DEBUG # SECRET CONFIGURATION @@ -53,7 +53,7 @@ # django-debug-toolbar # ------------------------------------------------------------------------------ -ENABLE_DEBUG_TOOLBAR = env.bool('ENABLE_DEBUG_TOOLBAR', default=True) +ENABLE_DEBUG_TOOLBAR = env.bool('ENABLE_DEBUG_TOOLBAR', True) if ENABLE_DEBUG_TOOLBAR: MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware'] diff --git a/config/settings/production.py b/config/settings/production.py index 961a3268..af45a4b9 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -28,15 +28,15 @@ SECURE_HSTS_SECONDS = 60 SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool( - 'DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS', default=True + 'DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS', True ) SECURE_CONTENT_TYPE_NOSNIFF = env.bool( - 'DJANGO_SECURE_CONTENT_TYPE_NOSNIFF', default=True + 'DJANGO_SECURE_CONTENT_TYPE_NOSNIFF', True ) SECURE_BROWSER_XSS_FILTER = True SESSION_COOKIE_SECURE = True SESSION_COOKIE_HTTPONLY = True -SECURE_SSL_REDIRECT = env.bool('DJANGO_SECURE_SSL_REDIRECT', default=True) +SECURE_SSL_REDIRECT = env.bool('DJANGO_SECURE_SSL_REDIRECT', True) SECURE_REDIRECT_EXEMPT = env.list( 'DJANGO_SECURE_REDIRECT_EXEMPT', default=['/taskflow/', r'^irodsbackend/api/auth$'], @@ -44,7 +44,7 @@ CSRF_COOKIE_SECURE = True CSRF_COOKIE_HTTPONLY = True CSRF_TRUSTED_ORIGINS = env.list('DJANGO_CSRF_TRUSTED_ORIGINS', default=[]) -CSRF_COOKIE_DOMAIN = env.str('DJANGO_CSRF_COOKIE_DOMAIN', default=None) +CSRF_COOKIE_DOMAIN = env.str('DJANGO_CSRF_COOKIE_DOMAIN', None) X_FRAME_OPTIONS = 'DENY' diff --git a/docs_manual/source/conf.py b/docs_manual/source/conf.py index 8360d084..a604f6d4 100644 --- a/docs_manual/source/conf.py +++ b/docs_manual/source/conf.py @@ -22,11 +22,11 @@ # -- Project information ----------------------------------------------------- project = 'SODAR' -copyright = '2018-2023, BIH Core Unit Bioinformatics' +copyright = '2018-2024, BIH Core Unit Bioinformatics' author = 'BIH Core Unit Bioinformatics' # The full version, including alpha/beta/rc tags -release = '0.14.2-WIP' +release = '0.14.2' # -- General configuration --------------------------------------------------- diff --git a/landingzones/views.py b/landingzones/views.py index 53356ed5..411e4d8f 100644 --- a/landingzones/views.py +++ b/landingzones/views.py @@ -329,11 +329,7 @@ def submit_delete(self, zone): if zone_exists: # Submit with taskflow flow_name = 'landing_zone_delete' flow_data = self.get_flow_data( - zone, - flow_name, - { - 'zone_uuid': str(zone.sodar_uuid), - }, + zone, flow_name, {'zone_uuid': str(zone.sodar_uuid)} ) taskflow.submit( project=project, diff --git a/samplesheets/templates/samplesheets/samplesheet_import_form.html b/samplesheets/templates/samplesheets/samplesheet_import_form.html index 2b2bec86..de71ee98 100644 --- a/samplesheets/templates/samplesheets/samplesheet_import_form.html +++ b/samplesheets/templates/samplesheets/samplesheet_import_form.html @@ -91,17 +91,11 @@