root / cloudcms / migrate / cloudcmsfaq / 0008_auto__chg_field_category_display_on_menu__chg_field_question_is_featur.py @ 072ce13f
History | View | Annotate | Download (15.5 kB)
1 |
# encoding: utf-8
|
---|---|
2 |
import datetime |
3 |
from south.db import db |
4 |
from south.v2 import SchemaMigration |
5 |
from django.db import models |
6 |
|
7 |
class Migration(SchemaMigration): |
8 |
|
9 |
def forwards(self, orm): |
10 |
|
11 |
# Changing field 'Category.display_on_menu'
|
12 |
db.alter_column('cloudcmsfaq_category', 'display_on_menu', self.gf('django.db.models.fields.BooleanField')(blank=True)) |
13 |
|
14 |
# Changing field 'Question.is_featured'
|
15 |
db.alter_column('cloudcmsfaq_question', 'is_featured', self.gf('django.db.models.fields.BooleanField')(blank=True)) |
16 |
|
17 |
# Changing field 'Question.title'
|
18 |
db.alter_column('cloudcmsfaq_question', 'title', self.gf('django.db.models.fields.CharField')(max_length=255)) |
19 |
|
20 |
# Changing field 'Question.is_active'
|
21 |
db.alter_column('cloudcmsfaq_question', 'is_active', self.gf('django.db.models.fields.BooleanField')(blank=True)) |
22 |
|
23 |
|
24 |
def backwards(self, orm): |
25 |
|
26 |
# Changing field 'Category.display_on_menu'
|
27 |
db.alter_column('cloudcmsfaq_category', 'display_on_menu', self.gf('django.db.models.fields.BooleanField')()) |
28 |
|
29 |
# Changing field 'Question.is_featured'
|
30 |
db.alter_column('cloudcmsfaq_question', 'is_featured', self.gf('django.db.models.fields.BooleanField')()) |
31 |
|
32 |
# Changing field 'Question.title'
|
33 |
db.alter_column('cloudcmsfaq_question', 'title', self.gf('django.db.models.fields.CharField')(max_length=100)) |
34 |
|
35 |
# Changing field 'Question.is_active'
|
36 |
db.alter_column('cloudcmsfaq_question', 'is_active', self.gf('django.db.models.fields.BooleanField')()) |
37 |
|
38 |
|
39 |
models = { |
40 |
'auth.group': {
|
41 |
'Meta': {'object_name': 'Group'}, |
42 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
43 |
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
44 |
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) |
45 |
}, |
46 |
'auth.permission': {
|
47 |
'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, |
48 |
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
49 |
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), |
50 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
51 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
52 |
}, |
53 |
'auth.user': {
|
54 |
'Meta': {'object_name': 'User'}, |
55 |
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
56 |
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
57 |
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
58 |
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), |
59 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
60 |
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), |
61 |
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
62 |
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
63 |
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
64 |
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
65 |
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
66 |
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), |
67 |
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) |
68 |
}, |
69 |
'cloudcms.application': {
|
70 |
'Meta': {'object_name': 'Application'}, |
71 |
'app_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), |
72 |
'code': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
73 |
'extra_styles': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), |
74 |
'facebook_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), |
75 |
'favicon': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'blank': 'True', 'related_name': "'as_favicon'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}), |
76 |
'footer_bottom': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), |
77 |
'footer_top': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), |
78 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
79 |
'index_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '255'}), |
80 |
'linked_in_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), |
81 |
'logo': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'to': "orm['medialibrary.MediaFile']", 'null': 'True', 'blank': 'True'}), |
82 |
'show_twitter_feed_on_top': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
83 |
'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['sites.Site']"}), |
84 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
85 |
'twitter_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}) |
86 |
}, |
87 |
'cloudcms.service': {
|
88 |
'Meta': {'object_name': 'Service'}, |
89 |
'class_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), |
90 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
91 |
'image_faq': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'blank': 'True', 'related_name': "'image_faq'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}), |
92 |
'image_userguide': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'blank': 'True', 'related_name': "'image_userguide'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}), |
93 |
'ordering': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) |
94 |
}, |
95 |
'cloudcmsfaq.category': {
|
96 |
'Meta': {'object_name': 'Category'}, |
97 |
'class_name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), |
98 |
'display_on_menu': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
99 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
100 |
'image': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'to': "orm['medialibrary.MediaFile']", 'null': 'True', 'blank': 'True'}), |
101 |
'ordering': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) |
102 |
}, |
103 |
'cloudcmsfaq.categorytranslation': {
|
104 |
'Meta': {'object_name': 'CategoryTranslation'}, |
105 |
'description': ('django.db.models.fields.CharField', [], {'max_length': '250', 'blank': 'True'}), |
106 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
107 |
'language_code': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '10'}), |
108 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['cloudcmsfaq.Category']"}), |
109 |
'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}), |
110 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
111 |
}, |
112 |
'cloudcmsfaq.imagecontent': {
|
113 |
'Meta': {'object_name': 'ImageContent', 'db_table': "'cloudcmsfaq_question_imagecontent'"}, |
114 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
115 |
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}), |
116 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
117 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'imagecontent_set'", 'to': "orm['cloudcmsfaq.Question']"}), |
118 |
'position': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '10'}), |
119 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}) |
120 |
}, |
121 |
'cloudcmsfaq.question': {
|
122 |
'Meta': {'object_name': 'Question'}, |
123 |
'application': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'faqs'", 'symmetrical': 'False', 'to': "orm['cloudcms.Application']"}), |
124 |
'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'faqs'", 'to': "orm['auth.User']"}), |
125 |
'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'faqs'", 'to': "orm['cloudcmsfaq.Category']"}), |
126 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
127 |
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), |
128 |
'is_featured': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
129 |
'language': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
130 |
'last_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
131 |
'published_on': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}), |
132 |
'service': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'faqs'", 'null': 'True', 'to': "orm['cloudcms.Service']"}), |
133 |
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '100', 'db_index': 'True'}), |
134 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}) |
135 |
}, |
136 |
'cloudcmsfaq.rawcontent': {
|
137 |
'Meta': {'object_name': 'RawContent', 'db_table': "'cloudcmsfaq_question_rawcontent'"}, |
138 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
139 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
140 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rawcontent_set'", 'to': "orm['cloudcmsfaq.Question']"}), |
141 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
142 |
'text': ('django.db.models.fields.TextField', [], {'blank': 'True'}) |
143 |
}, |
144 |
'cloudcmsfaq.richtextcontent': {
|
145 |
'Meta': {'object_name': 'RichTextContent', 'db_table': "'cloudcmsfaq_question_richtextcontent'"}, |
146 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
147 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
148 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'richtextcontent_set'", 'to': "orm['cloudcmsfaq.Question']"}), |
149 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
150 |
'text': ('django.db.models.fields.TextField', [], {'blank': 'True'}) |
151 |
}, |
152 |
'cloudcmsfaq.sectioncontent': {
|
153 |
'Meta': {'object_name': 'SectionContent', 'db_table': "'cloudcmsfaq_question_sectioncontent'"}, |
154 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
155 |
'mediafile': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'cloudcmsfaq_sectioncontent_set'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}), |
156 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
157 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sectioncontent_set'", 'to': "orm['cloudcmsfaq.Question']"}), |
158 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
159 |
'richtext': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
160 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), |
161 |
'type': ('django.db.models.fields.CharField', [], {'default': "'block'", 'max_length': '10'}) |
162 |
}, |
163 |
'cloudcmsfaq.templatecontent': {
|
164 |
'Meta': {'object_name': 'TemplateContent', 'db_table': "'cloudcmsfaq_question_templatecontent'"}, |
165 |
'filename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
166 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
167 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
168 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'templatecontent_set'", 'to': "orm['cloudcmsfaq.Question']"}), |
169 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}) |
170 |
}, |
171 |
'contenttypes.contenttype': {
|
172 |
'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
173 |
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
174 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
175 |
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
176 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
177 |
}, |
178 |
'medialibrary.category': {
|
179 |
'Meta': {'object_name': 'Category'}, |
180 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
181 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['medialibrary.Category']"}), |
182 |
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '150', 'db_index': 'True'}), |
183 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '200'}) |
184 |
}, |
185 |
'medialibrary.mediafile': {
|
186 |
'Meta': {'object_name': 'MediaFile'}, |
187 |
'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['medialibrary.Category']", 'null': 'True', 'blank': 'True'}), |
188 |
'copyright': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), |
189 |
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
190 |
'file': ('django.db.models.fields.files.FileField', [], {'max_length': '255'}), |
191 |
'file_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
192 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
193 |
'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}) |
194 |
}, |
195 |
'sites.site': {
|
196 |
'Meta': {'object_name': 'Site', 'db_table': "'django_site'"}, |
197 |
'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
198 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
199 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
200 |
} |
201 |
} |
202 |
|
203 |
complete_apps = ['cloudcmsfaq']
|