X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/891b9e3b7ecaedc9ac32bc941400a267c77482a0..dfd584e3b136d770bf56569030d10712a8722569:/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 a317db835..2c3f4f07a 100644 --- a/apps/infopages/migrations/0001_initial.py +++ b/apps/infopages/migrations/0001_initial.py @@ -1,105 +1,57 @@ -# 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): - - # Adding model 'InfoPage' - db.create_table('infopages_infopage', ( - ('title_de', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('page_title', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('left_column_uk', self.gf('django.db.models.fields.TextField')(blank=True)), - ('right_column_pl', self.gf('django.db.models.fields.TextField')(blank=True)), - ('page_title_en', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('page_title_es', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('left_column_lt', self.gf('django.db.models.fields.TextField')(blank=True)), - ('title_fr', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('right_column_ru', self.gf('django.db.models.fields.TextField')(blank=True)), - ('left_column_fr', self.gf('django.db.models.fields.TextField')(blank=True)), - ('title', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('title_lt', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('right_column', self.gf('django.db.models.fields.TextField')(blank=True)), - ('right_column_es', self.gf('django.db.models.fields.TextField')(blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('right_column_en', self.gf('django.db.models.fields.TextField')(blank=True)), - ('left_column_de', self.gf('django.db.models.fields.TextField')(blank=True)), - ('title_uk', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('right_column_fr', self.gf('django.db.models.fields.TextField')(blank=True)), - ('left_column', self.gf('django.db.models.fields.TextField')(blank=True)), - ('right_column_uk', self.gf('django.db.models.fields.TextField')(blank=True)), - ('title_en', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('left_column_pl', self.gf('django.db.models.fields.TextField')(blank=True)), - ('left_column_ru', self.gf('django.db.models.fields.TextField')(blank=True)), - ('right_column_lt', self.gf('django.db.models.fields.TextField')(blank=True)), - ('title_es', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('page_title_fr', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('page_title_uk', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('page_title_de', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('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)), - ('right_column_de', self.gf('django.db.models.fields.TextField')(blank=True)), - ('page_title_pl', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('left_column_es', self.gf('django.db.models.fields.TextField')(blank=True)), - ('left_column_en', self.gf('django.db.models.fields.TextField')(blank=True)), - ('title_pl', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('title_ru', self.gf('django.db.models.fields.CharField')(max_length=120)), - ('page_title_ru', self.gf('django.db.models.fields.CharField')(max_length=120)), - )) - 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', [], {'blank': 'True'}), - 'left_column_en': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'left_column_es': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'left_column_fr': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'left_column_lt': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'left_column_pl': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'left_column_ru': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'left_column_uk': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'page_title': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'page_title_de': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'page_title_en': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'page_title_es': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'page_title_fr': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'page_title_lt': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'page_title_pl': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'page_title_ru': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'page_title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'right_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_de': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_en': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_es': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_fr': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_lt': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_pl': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_ru': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'right_column_uk': ('django.db.models.fields.TextField', [], {'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'}), - 'title_de': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'title_es': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'title_fr': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'title_lt': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'title_ru': ('django.db.models.fields.CharField', [], {'max_length': '120'}), - 'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120'}) - } - } - - complete_apps = ['infopages'] +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,), + ), + ]