dnscms: fix linting issues
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from .base import *
|
from .base import * # noqa: F403
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
@@ -12,6 +12,6 @@ ALLOWED_HOSTS = ["*"]
|
|||||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from .local import *
|
from .local import * # noqa: F403
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
from .base import *
|
from .base import * # noqa: F403
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from .local import *
|
from .local import * # noqa: F403
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ from wagtail.snippets.models import register_snippet
|
|||||||
|
|
||||||
@register_streamfield_block
|
@register_streamfield_block
|
||||||
class OpeningHoursRangeBlock(blocks.StructBlock):
|
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_from = blocks.TimeBlock(required=False, label="Åpner")
|
||||||
time_to = blocks.TimeBlock(required=False, label="Stenger")
|
time_to = blocks.TimeBlock(required=False, label="Stenger")
|
||||||
custom = blocks.CharBlock(
|
custom = blocks.CharBlock(
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
from django.shortcuts import render
|
|
||||||
|
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ from django.apps import AppConfig
|
|||||||
|
|
||||||
|
|
||||||
class SponsorsConfig(AppConfig):
|
class SponsorsConfig(AppConfig):
|
||||||
default_auto_field = 'django.db.models.BigAutoField'
|
default_auto_field = "django.db.models.BigAutoField"
|
||||||
name = 'sponsors'
|
name = "sponsors"
|
||||||
|
|||||||
Reference in New Issue
Block a user