gestiojeux/website/migrations/0001_initial.py
sinavir c01ed7cb47 style(pre-commit): Add hook
Python:
- black
- isort (black profile)
- ruff

Nix:
- statix
- nixfmt-rfc-style
- deadnix
2024-07-04 20:47:46 +02:00

43 lines
1.3 KiB
Python

# Generated by Django 3.1.2 on 2020-12-27 11:34
import markdownx.models
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="MarkdownPage",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"slug",
models.SlugField(
blank=True,
help_text="Identifiant de la page qui se voit dans l'URL. Ne doit pas collisionner avec une page existante. Laisser vide pour la page d'accueil, requis sinon.",
unique=True,
verbose_name="Adresse de la page",
),
),
("content", markdownx.models.MarkdownxField(verbose_name="Contenu")),
],
options={
"verbose_name": "page Markdown",
"verbose_name_plural": "pages Markdown",
"ordering": ["slug"],
},
),
]