X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..6b985a0a184c49324857d01b2f22fd23ebd5f5a4:/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..5d7de925 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 +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.db import models, migrations -class Migration(SchemaMigration): - - def forwards(self, orm): - pass - - - def backwards(self, orm): - pass - - - models = { - - } - - complete_apps = ['wiki'] + +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,), + ), + ]