www-bocal/mainsite/migrations/0001_initial.py

66 lines
2 KiB
Python
Raw Normal View History

2017-09-21 11:34:40 +02:00
# -*- coding: utf-8 -*-
2017-09-21 19:58:42 +02:00
# Generated by Django 1.11.5 on 2017-09-21 17:57
2017-09-21 11:34:40 +02:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
2017-09-21 11:34:40 +02:00
operations = [
migrations.CreateModel(
name="Publication",
2017-09-21 11:34:40 +02:00
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"num",
models.CharField(max_length=128, verbose_name="Numéro du BOcal"),
),
(
"url",
models.CharField(
max_length=512, verbose_name="Adresse sur le site"
),
),
("date", models.DateField(verbose_name="Publication")),
(
"is_special",
models.BooleanField(
default=False,
help_text="Numéro du BOcal non-numéroté",
verbose_name="Numéro spécial",
),
),
(
"descr",
models.CharField(
blank=True,
max_length=512,
verbose_name="Description (optionnelle)",
),
),
(
"custom_name",
models.CharField(
blank=True,
help_text="Vide pour laisser le numéro seulement",
max_length=128,
verbose_name="Nom customisé",
),
),
2017-09-21 11:34:40 +02:00
],
),
]