formation_django/exemple/mon_site/blog/migrations/0001_initial.py

24 lines
653 B
Python
Raw Permalink Normal View History

2018-04-07 13:49:12 +00:00
# Generated by Django 2.0.4 on 2018-04-07 12:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.TextField(verbose_name='Texte')),
('title', models.CharField(max_length=255, verbose_name='Titre')),
('date', models.DateField(verbose_name='Date de parution')),
],
),
]