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