Skip to content
Newer
Older
100644 107 lines (92 sloc) 7.07 KB
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
1
2 from south.db import db
3 from django.db import models
4 from cms.models import *
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
5 import datetime
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
6
7 class Migration:
8
9 def forwards(self, orm):
10
11 # Changing field 'Title.language'
12 db.alter_column('cms_title', 'language', models.CharField(_("language"), max_length=5, db_index=True))
13
14 # Changing field 'CMSPlugin.language'
15 db.alter_column('cms_cmsplugin', 'language', models.CharField(_("language"), db_index=True, max_length=5, editable=False, blank=False))
16
17
18
19 def backwards(self, orm):
20
21 # Changing field 'Title.language'
22 db.alter_column('cms_title', 'language', models.CharField(_("language"), max_length=3, db_index=True))
23
24 # Changing field 'CMSPlugin.language'
25 db.alter_column('cms_cmsplugin', 'language', models.CharField(_("language"), blank=False, max_length=3, editable=False, db_index=True))
26
27
28
29 models = {
30 'sites.site': {
31 'Meta': {'ordering': "('domain',)", 'db_table': "'django_site'"},
32 '_stub': True,
33 'id': ('models.AutoField', [], {'primary_key': 'True'})
34 },
35 'auth.user': {
36 '_stub': True,
37 'id': ('models.AutoField', [], {'primary_key': 'True'})
38 },
39 'cms.pagepermission': {
40 'can_change_softroot': ('models.BooleanField', ['_("can change soft-root")'], {'default': 'False'}),
41 'can_edit': ('models.BooleanField', ['_("can edit")'], {'default': 'True'}),
42 'can_publish': ('models.BooleanField', ['_("can publish")'], {'default': 'True'}),
43 'everybody': ('models.BooleanField', ['_("everybody")'], {'default': 'False'}),
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
44 'group': ('models.ForeignKey', ['Group'], {'null': 'True', 'blank': 'True'}),
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
45 'id': ('models.AutoField', [], {'primary_key': 'True'}),
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
46 'page': ('models.ForeignKey', ['Page'], {'null': 'True', 'blank': 'True'}),
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
47 'type': ('models.IntegerField', ['_("type")'], {'default': '0'}),
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
48 'user': ('models.ForeignKey', ['User'], {'null': 'True', 'blank': 'True'})
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
49 },
50 'cms.cmsplugin': {
51 'creation_date': ('models.DateTimeField', ['_("creation date")'], {'default': 'datetime.datetime.now', 'editable': 'False'}),
52 'id': ('models.AutoField', [], {'primary_key': 'True'}),
53 'language': ('models.CharField', ['_("language")'], {'db_index': 'True', 'max_length': '5', 'editable': 'False', 'blank': 'False'}),
54 'level': ('models.PositiveIntegerField', [],{'db_index':'True', 'editable':'False'}),
55 'lft': ('models.PositiveIntegerField', [],{'db_index':'True', 'editable':'False'}),
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
56 'page': ('models.ForeignKey', ['Page'], {'editable': 'False'}),
57 'parent': ('models.ForeignKey', ['CMSPlugin'], {'null': 'True', 'editable': 'False', 'blank': 'True'}),
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
58 'placeholder': ('models.CharField', ['_("slot")'], {'max_length': '50', 'editable': 'False', 'db_index': 'True'}),
59 'plugin_type': ('models.CharField', ['_("plugin_name")'], {'max_length': '50', 'editable': 'False', 'db_index': 'True'}),
60 'position': ('models.PositiveSmallIntegerField', ['_("position")'], {'null': 'True', 'editable': 'False', 'blank': 'True'}),
61 'rght': ('models.PositiveIntegerField', [],{'db_index':'True', 'editable':'False'}),
62 'tree_id': ('models.PositiveIntegerField', [],{'db_index':'True', 'editable':'False'}),
63 },
64 'cms.title': {
9e0d004 @digi604 (no commit message)
digi604 authored
65 'Meta': {'unique_together': "(('language','page'),)"},
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
66 'application_urls': ('models.CharField', ["_('application')"], {'blank': 'True', 'max_length': '200', 'null': 'True', 'db_index': 'True'}),
67 'creation_date': ('models.DateTimeField', ['_("creation date")'], {'default': 'datetime.datetime.now', 'editable': 'False'}),
68 'has_url_overwrite': ('models.BooleanField', ['_("has url overwrite")'], {'default': 'False', 'editable': 'False', 'db_index': 'True'}),
69 'id': ('models.AutoField', [], {'primary_key': 'True'}),
70 'language': ('models.CharField', ['_("language")'], {'max_length': '5', 'db_index': 'True'}),
8ef4444 @digi604 fixed some migrations
digi604 authored
71 'meta_description': ('models.TextField', ['_("description")'], {'max_length': '255', 'blank': 'True', 'null':'True'}),
72 'meta_keywords': ('models.CharField', ['_("keywords")'], {'max_length': '255', 'blank': 'True', 'null':'True'}),
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
73 'page': ('models.ForeignKey', ['Page'], {'related_name': '"title_set"'}),
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
74 'path': ('models.CharField', ['_("path")'], {'max_length': '255', 'db_index': 'True'}),
75 'redirect': ('models.CharField', ['_("redirect")'], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
76 'slug': ('models.SlugField', ['_("slug")'], {'unique': 'False', 'max_length': '255', 'db_index': 'True'}),
77 'title': ('models.CharField', ['_("title")'], {'max_length': '255'})
78 },
79 'cms.page': {
80 'Meta': {'ordering': "('tree_id','lft')"},
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
81 'author': ('models.ForeignKey', ['User'], {'limit_choices_to': "{'page__isnull':False}"}),
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
82 'creation_date': ('models.DateTimeField', [], {'default': 'datetime.datetime.now', 'editable': 'False'}),
83 'id': ('models.AutoField', [], {'primary_key': 'True'}),
84 'in_navigation': ('models.BooleanField', ['_("in navigation")'], {'default': 'True', 'db_index': 'True'}),
85 'level': ('models.PositiveIntegerField', [],{'db_index':'True', 'editable':'False'}),
86 'lft': ('models.PositiveIntegerField', [],{'db_index':'True', 'editable':'False'}),
87 'login_required': ('models.BooleanField', ["_('login required')"], {'default': 'False'}),
88 'navigation_extenders': ('models.CharField', ['_("navigation extenders")'], {'blank': 'True', 'max_length': '80', 'null': 'True', 'db_index': 'True'}),
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
89 'parent': ('models.ForeignKey', ['Page'], {'db_index': 'True', 'related_name': "'children'", 'null': 'True', 'blank': 'True'}),
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
90 'publication_date': ('models.DateTimeField', ['_("publication date")'], {'null': 'True', 'db_index': 'True', 'blank': 'True'}),
91 'publication_end_date': ('models.DateTimeField', ['_("publication end date")'], {'null': 'True', 'db_index': 'True', 'blank': 'True'}),
92 'reverse_id': ('models.CharField', ['_("id")'], {'blank': 'True', 'max_length': '40', 'null': 'True', 'db_index': 'True'}),
93 'rght': ('models.PositiveIntegerField', [],{'db_index':'True', 'editable':'False'}),
77a3738 fixed datetime and reference to external app models in migration models
phuihock authored
94 'sites': ('models.ManyToManyField', ['Site'], {}),
202f4e5 @digi604 #52 languages are 5 char long now
digi604 authored
95 'soft_root': ('models.BooleanField', ['_("soft root")'], {'default': 'False', 'db_index': 'True'}),
96 'status': ('models.IntegerField', ['_("status")'], {'default': '0', 'db_index': 'True'}),
97 'template': ('models.CharField', ['_("template")'], {'max_length': '100'}),
98 'tree_id': ('models.PositiveIntegerField', [],{'db_index':'True', 'editable':'False'}),
99 },
100 'auth.group': {
101 '_stub': True,
102 'id': ('models.AutoField', [], {'primary_key': 'True'})
103 }
104 }
105
106 complete_apps = ['cms']
Something went wrong with that request. Please try again.