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

29 lines
1.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 = [
]
operations = [
migrations.CreateModel(
name='Publication',
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')),
2017-09-21 19:58:42 +02:00
('url', models.CharField(max_length=512, verbose_name='Adresse sur le site')),
2017-09-21 11:34:40 +02:00
('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')),
2017-09-21 19:58:42 +02:00
('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
],
),
]