X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..040285e94b385dd57a003a4fe5b693c299fe921b:/src/wiki/migrations/0001_initial.py?ds=sidebyside diff --git a/src/wiki/migrations/0001_initial.py b/src/wiki/migrations/0001_initial.py index 4acf5ba5..79c8e993 100644 --- a/src/wiki/migrations/0001_initial.py +++ b/src/wiki/migrations/0001_initial.py @@ -1,21 +1,26 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models +# -*- coding: utf-8 -*- +from __future__ import unicode_literals -class Migration(SchemaMigration): - - def forwards(self, orm): - pass - - - def backwards(self, orm): - pass - - - models = { - - } - - complete_apps = ['wiki'] +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Theme', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=50, verbose_name='name')), + ], + options={ + 'ordering': ('name',), + 'verbose_name': 'theme', + 'verbose_name_plural': 'themes', + }, + bases=(models.Model,), + ), + ]