kb: add initial migration

This commit is contained in:
Frédéric Péters 2015-11-01 22:51:02 +01:00
parent 35bbbfcc17
commit 8992e65d93
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import ckeditor.fields
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('title', models.CharField(max_length=200, verbose_name='Title')),
('slug', models.SlugField(verbose_name='Slug')),
('content', ckeditor.fields.RichTextField(verbose_name='Text')),
],
options={
'ordering': ['title'],
},
bases=(models.Model,),
),
]

View File