bornhack-website/news/migrations/0001_initial.py

32 lines
932 B
Python
Raw Normal View History

2016-05-30 19:36:14 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-30 19:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='NewsItem',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('title', models.CharField(max_length=100)),
('content', models.TextField()),
('public', models.BooleanField(default=False)),
('published_at', models.DateTimeField()),
],
options={
'abstract': False,
},
),
]