1
0
Fork 0
IdreXyz/news/migrations/0001_initial.py

30 lines
825 B
Python
Raw Permalink Normal View History

2016-02-02 18:28:58 +01:00
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-01 19:25
from __future__ import unicode_literals
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')),
('title', models.CharField(max_length=256)),
('content', models.TextField(help_text='Markdown formatting supported')),
('author', models.CharField(max_length=64)),
('date', models.DateField()),
],
options={
'ordering': ('date',),
},
),
]