3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Adding model 'InfoPage'
12 db.create_table('infopages_infopage', (
13 ('title_de', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
14 ('page_title', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
15 ('left_column_uk', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
16 ('right_column_pl', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
17 ('page_title_en', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
18 ('page_title_es', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
19 ('left_column_lt', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
20 ('title_fr', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
21 ('right_column_ru', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
22 ('left_column_fr', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
23 ('title', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
24 ('title_lt', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
25 ('right_column', self.gf('django.db.models.fields.TextField')(blank=True)),
26 ('right_column_es', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
27 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
28 ('right_column_en', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
29 ('left_column_de', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
30 ('title_uk', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
31 ('right_column_fr', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
32 ('left_column', self.gf('django.db.models.fields.TextField')(blank=True)),
33 ('right_column_uk', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
34 ('title_en', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
35 ('left_column_pl', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
36 ('left_column_ru', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
37 ('right_column_lt', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
38 ('title_es', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
39 ('page_title_fr', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
40 ('page_title_uk', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
41 ('page_title_de', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
42 ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=120, db_index=True)),
43 ('page_title_lt', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
44 ('right_column_de', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
45 ('page_title_pl', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
46 ('left_column_es', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
47 ('left_column_en', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
48 ('title_pl', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
49 ('title_ru', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
50 ('page_title_ru', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
54 from django.core.management import call_command
55 call_command("loaddata", "wl_data")
57 db.send_create_signal('infopages', ['InfoPage'])
60 def backwards(self, orm):
62 # Deleting model 'InfoPage'
63 db.delete_table('infopages_infopage')
67 'infopages.infopage': {
68 'Meta': {'object_name': 'InfoPage'},
69 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70 'left_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
71 'left_column_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
72 'left_column_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
73 'left_column_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
74 'left_column_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
75 'left_column_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
76 'left_column_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
77 'left_column_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
78 'left_column_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
79 'page_title': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
80 'page_title_de': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
81 'page_title_en': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
82 'page_title_es': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
83 'page_title_fr': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
84 'page_title_lt': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
85 'page_title_pl': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
86 'page_title_ru': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
87 'page_title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
88 'right_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
89 'right_column_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
90 'right_column_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
91 'right_column_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
92 'right_column_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
93 'right_column_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
94 'right_column_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
95 'right_column_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
96 'right_column_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
97 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
98 'title': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
99 'title_de': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
100 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
101 'title_es': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
102 'title_fr': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
103 'title_lt': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
104 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
105 'title_ru': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
106 'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True})
110 complete_apps = ['infopages']