Statistics
| Branch: | Tag: | Revision:

root / cloudcms / migrate / cloudcmsfaq / 0004_auto__add_imagecontent.py @ 7c981632

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