dnscms: fix linting issues

This commit is contained in:
2026-08-03 00:47:34 +02:00
parent 669a3cce8d
commit 848829f3b9
5 changed files with 6 additions and 10 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from .base import *
from .base import * # noqa: F403
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
@@ -12,6 +12,6 @@ ALLOWED_HOSTS = ["*"]
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
try:
from .local import *
from .local import * # noqa: F403
except ImportError:
pass
+2 -2
View File
@@ -1,8 +1,8 @@
from .base import *
from .base import * # noqa: F403
DEBUG = False
try:
from .local import *
from .local import * # noqa: F403
except ImportError:
pass
-2
View File
@@ -13,8 +13,6 @@ from wagtail.snippets.models import register_snippet
@register_streamfield_block
class OpeningHoursRangeBlock(blocks.StructBlock):
# closed = blocks.BooleanBlock(required=False, help_text="Kryss av her om lokalet er stengt.")
# blocks.RegexBlock(regex=r'^\d\d:\d\d$', error_messages={'invalid': 'Må være på formatet HH:MM'}, help_text="Tidspunkt på formatet HH:MM")
time_from = blocks.TimeBlock(required=False, label="Åpner")
time_to = blocks.TimeBlock(required=False, label="Stenger")
custom = blocks.CharBlock(
-2
View File
@@ -1,3 +1 @@
from django.shortcuts import render
# Create your views here.
+2 -2
View File
@@ -2,5 +2,5 @@ from django.apps import AppConfig
class SponsorsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'sponsors'
default_auto_field = "django.db.models.BigAutoField"
name = "sponsors"