Fix formatting
This commit is contained in:
parent
e6f7239c14
commit
63aa3587da
10 changed files with 11 additions and 17 deletions
|
@ -13,7 +13,7 @@ repos:
|
|||
hooks:
|
||||
- id: flake8
|
||||
args: ["--max-line-length=88", "--extend-ignore=E203"]
|
||||
exclude: "lps/lps/settings/"
|
||||
exclude: "lps/lps/settings/|migrations"
|
||||
- repo: https://github.com/Riverside-Healthcare/djLint
|
||||
rev: v1.23.3
|
||||
hooks:
|
||||
|
|
|
@ -8,7 +8,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("base", "0002_alter_navigationsettings_phone"),
|
||||
("wagtailcore", "0093_uploadedfile"),
|
||||
|
|
|
@ -5,7 +5,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("base", "0003_formpage_formfield"),
|
||||
("wagtailimages", "0026_delete_uploadedimage"),
|
||||
|
|
|
@ -26,6 +26,7 @@ class NavigationSettings(BaseGenericSetting):
|
|||
)
|
||||
]
|
||||
|
||||
|
||||
@register_setting
|
||||
class SiteSettings(BaseGenericSetting):
|
||||
icon = models.ForeignKey(
|
||||
|
@ -37,9 +38,7 @@ class SiteSettings(BaseGenericSetting):
|
|||
help_text="Icône du site",
|
||||
)
|
||||
|
||||
panels = [
|
||||
MultiFieldPanel(
|
||||
[FieldPanel("icon")], "Informations du site")]
|
||||
panels = [MultiFieldPanel([FieldPanel("icon")], "Informations du site")]
|
||||
|
||||
|
||||
class FormField(AbstractFormField):
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from django import template
|
||||
|
||||
from wagtail.models import Site
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.simple_tag(takes_context=True)
|
||||
def get_site_root(context):
|
||||
return Site.find_for_request(context["request"]).root_page
|
||||
|
|
|
@ -5,7 +5,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("home", "0004_homepage_hero_text_homepage_image"),
|
||||
("wagtailimages", "0026_delete_uploadedimage"),
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.db import migrations
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("home", "0005_homepage_icon"),
|
||||
]
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
rel="stylesheet" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'css/lps.css' %}">
|
||||
{% block extra_css %}{# Override this in templates to add extra stylesheets #}{% endblock %}
|
||||
|
||||
{% image settings.base.SiteSettings.icon fill-32x32 format-png as favicon %}
|
||||
<link rel="icon" href="{{ favicon.url }}">
|
||||
</head>
|
||||
|
|
Reference in a new issue