forked from DGNum/gestioCOF
Black + isort
This commit is contained in:
parent
0f1e05acdd
commit
1c45dd833d
4 changed files with 430 additions and 79 deletions
|
@ -36,7 +36,7 @@ class Migration(migrations.Migration):
|
|||
"no_header",
|
||||
models.BooleanField(
|
||||
verbose_name="Sans en-tête",
|
||||
help_text="Coché, l'en-tête (avec le titre) de la page n'est pas affiché.",
|
||||
help_text="Coché, l'en-tête (avec le titre) de la page n'est pas affiché.", # noqa
|
||||
default=False,
|
||||
),
|
||||
),
|
||||
|
@ -46,9 +46,7 @@ class Migration(migrations.Migration):
|
|||
(
|
||||
(
|
||||
"rich",
|
||||
wagtail.core.blocks.RichTextBlock(
|
||||
label="Éditeur"
|
||||
),
|
||||
wagtail.core.blocks.RichTextBlock(label="Éditeur"),
|
||||
),
|
||||
("carte", kfet.cms.models.MenuBlock()),
|
||||
(
|
||||
|
@ -58,7 +56,7 @@ class Migration(migrations.Migration):
|
|||
(
|
||||
"show_only",
|
||||
wagtail.core.blocks.IntegerBlock(
|
||||
help_text="Nombre initial de membres affichés. Laisser vide pour tou-te-s les afficher.",
|
||||
help_text="Nombre initial de membres affichés. Laisser vide pour tou-te-s les afficher.", # noqa
|
||||
required=False,
|
||||
label="Montrer seulement",
|
||||
),
|
||||
|
@ -66,7 +64,7 @@ class Migration(migrations.Migration):
|
|||
(
|
||||
"members",
|
||||
wagtail.core.blocks.ListBlock(
|
||||
wagtail.snippets.blocks.SnippetChooserBlock(
|
||||
wagtail.snippets.blocks.SnippetChooserBlock( # noqa
|
||||
kfet.cms.models.MemberTeam
|
||||
),
|
||||
classname="team-group",
|
||||
|
@ -93,8 +91,8 @@ class Migration(migrations.Migration):
|
|||
(
|
||||
(
|
||||
"show_only",
|
||||
wagtail.core.blocks.IntegerBlock(
|
||||
help_text="Nombre initial de membres affichés. Laisser vide pour tou-te-s les afficher.",
|
||||
wagtail.core.blocks.IntegerBlock( # noqa
|
||||
help_text="Nombre initial de membres affichés. Laisser vide pour tou-te-s les afficher.", # noqa
|
||||
required=False,
|
||||
label="Montrer seulement",
|
||||
),
|
||||
|
@ -102,8 +100,8 @@ class Migration(migrations.Migration):
|
|||
(
|
||||
"members",
|
||||
wagtail.core.blocks.ListBlock(
|
||||
wagtail.snippets.blocks.SnippetChooserBlock(
|
||||
kfet.cms.models.MemberTeam
|
||||
wagtail.snippets.blocks.SnippetChooserBlock( # noqa
|
||||
kfet.cms.models.MemberTeam # noqa
|
||||
),
|
||||
classname="team-group",
|
||||
label="K-Fêt-eux-ses",
|
||||
|
@ -157,7 +155,7 @@ class Migration(migrations.Migration):
|
|||
max_length=255,
|
||||
blank=True,
|
||||
verbose_name="Nombre de colonnes",
|
||||
help_text="S'applique au page dont le contenu est scindé sur plusieurs colonnes",
|
||||
help_text="S'applique au page dont le contenu est scindé sur plusieurs colonnes", # noqa
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
from modeltranslation.decorators import register
|
||||
from modeltranslation.translator import TranslationOptions
|
||||
|
||||
from .models import (
|
||||
KFetPage,
|
||||
)
|
||||
from .models import KFetPage
|
||||
|
||||
|
||||
@register(KFetPage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue