X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/67df302167539474edd02b57c2e8bd30349d7625..bf3f18ce9313f4929ff327fbf12803157de171cb:/apps/infopages/migrations/0001_initial.py?ds=sidebyside diff --git a/apps/infopages/migrations/0001_initial.py b/apps/infopages/migrations/0001_initial.py index a28ce3aa2..2c3f4f07a 100644 --- a/apps/infopages/migrations/0001_initial.py +++ b/apps/infopages/migrations/0001_initial.py @@ -1,110 +1,57 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'InfoPage' - db.create_table('infopages_infopage', ( - ('title_de', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('page_title', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)), - ('left_column_uk', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('right_column_pl', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('page_title_en', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('page_title_es', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('left_column_lt', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('title_fr', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('right_column_ru', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('left_column_fr', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('title', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)), - ('title_lt', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('right_column', self.gf('django.db.models.fields.TextField')(blank=True)), - ('right_column_es', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('right_column_en', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('left_column_de', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('title_uk', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('right_column_fr', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('left_column', self.gf('django.db.models.fields.TextField')(blank=True)), - ('right_column_uk', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('title_en', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('left_column_pl', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('left_column_ru', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('right_column_lt', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('title_es', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('page_title_fr', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('page_title_uk', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('page_title_de', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=120, db_index=True)), - ('page_title_lt', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('right_column_de', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('page_title_pl', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('left_column_es', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('left_column_en', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), - ('title_pl', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('title_ru', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - ('page_title_ru', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)), - )) - - if not db.dry_run: - from django.core.management import call_command - call_command("loaddata", "wl_data") - - db.send_create_signal('infopages', ['InfoPage']) - - - def backwards(self, orm): - - # Deleting model 'InfoPage' - db.delete_table('infopages_infopage') - - - models = { - 'infopages.infopage': { - 'Meta': {'object_name': 'InfoPage'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'left_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'left_column_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'left_column_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'left_column_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'left_column_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'left_column_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'left_column_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'left_column_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'left_column_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'page_title': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}), - 'page_title_de': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'page_title_en': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'page_title_es': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'page_title_fr': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'page_title_lt': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'page_title_pl': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'page_title_ru': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'page_title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'right_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'right_column_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'right_column_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'right_column_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'right_column_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'right_column_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'right_column_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'right_column_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), - 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}), - 'title_de': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'title_es': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'title_fr': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'title_lt': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'title_ru': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), - 'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}) - } - } - - complete_apps = ['infopages'] +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='InfoPage', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('main_page', models.IntegerField(null=True, verbose_name='main page priority', blank=True)), + ('slug', models.SlugField(unique=True, max_length=120, verbose_name='Slug')), + ('title', models.CharField(max_length=120, verbose_name='Title', blank=True)), + ('title_de', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('title_en', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('title_es', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('title_fr', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('title_it', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('title_lt', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('title_pl', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('title_ru', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('title_uk', models.CharField(max_length=120, null=True, verbose_name='Title', blank=True)), + ('left_column', models.TextField(verbose_name='left column', blank=True)), + ('left_column_de', models.TextField(null=True, verbose_name='left column', blank=True)), + ('left_column_en', models.TextField(null=True, verbose_name='left column', blank=True)), + ('left_column_es', models.TextField(null=True, verbose_name='left column', blank=True)), + ('left_column_fr', models.TextField(null=True, verbose_name='left column', blank=True)), + ('left_column_it', models.TextField(null=True, verbose_name='left column', blank=True)), + ('left_column_lt', models.TextField(null=True, verbose_name='left column', blank=True)), + ('left_column_pl', models.TextField(null=True, verbose_name='left column', blank=True)), + ('left_column_ru', models.TextField(null=True, verbose_name='left column', blank=True)), + ('left_column_uk', models.TextField(null=True, verbose_name='left column', blank=True)), + ('right_column', models.TextField(verbose_name='right column', blank=True)), + ('right_column_de', models.TextField(null=True, verbose_name='right column', blank=True)), + ('right_column_en', models.TextField(null=True, verbose_name='right column', blank=True)), + ('right_column_es', models.TextField(null=True, verbose_name='right column', blank=True)), + ('right_column_fr', models.TextField(null=True, verbose_name='right column', blank=True)), + ('right_column_it', models.TextField(null=True, verbose_name='right column', blank=True)), + ('right_column_lt', models.TextField(null=True, verbose_name='right column', blank=True)), + ('right_column_pl', models.TextField(null=True, verbose_name='right column', blank=True)), + ('right_column_ru', models.TextField(null=True, verbose_name='right column', blank=True)), + ('right_column_uk', models.TextField(null=True, verbose_name='right column', blank=True)), + ], + options={ + 'ordering': ('main_page', 'slug'), + 'verbose_name': 'info page', + 'verbose_name_plural': 'info pages', + }, + bases=(models.Model,), + ), + ]