32 lines
932 B
Python
32 lines
932 B
Python
|
# -*- 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,
|
||
|
},
|
||
|
),
|
||
|
]
|