Revision 7c981632
b/cloudcms/cms.py | ||
---|---|---|
54 | 54 |
from feincms.content.video.models import VideoContent |
55 | 55 |
from feincms.content.richtext.models import RichTextContent |
56 | 56 |
|
57 |
from cloudcmsblog.models import Entry, LatestEntries |
|
58 |
from cloudcmsfaq.models import Question |
|
59 |
|
|
60 | 57 |
from cloudcmsresources.models import ResourcesList |
61 | 58 |
from cloudcms.content import * |
62 | 59 |
|
... | ... | |
120 | 117 |
), |
121 | 118 |
}, |
122 | 119 |
{ |
120 |
'key': 'faq', |
|
121 |
'title': 'FAQ\'s template', |
|
122 |
'path': 'cms/pages/faq.html', |
|
123 |
'regions': ( |
|
124 |
('main', 'Main region'), |
|
125 |
('sidebar', 'Sidebar', 'inherited'), |
|
126 |
), |
|
127 |
}, |
|
128 |
{ |
|
123 | 129 |
'key': 'raw', |
124 | 130 |
'title': 'Empty content template', |
125 | 131 |
'path': 'cms/pages/empty.html', |
... | ... | |
139 | 145 |
Page.create_content_type(TwitterFeed) |
140 | 146 |
Page.create_content_type(VideoContent) |
141 | 147 |
Page.create_content_type(VideoSection) |
142 |
Page.create_content_type(LatestEntries) |
|
143 | 148 |
Page.create_content_type(IntroButton) |
144 | 149 |
Page.create_content_type(ImageContent, POSITION_CHOICES=( |
145 | 150 |
('default', 'Default position'), |
... | ... | |
152 | 157 |
('cloudcmsblog', 'Cloud blog', {'urls': 'cloudcmsblog.urls'}), |
153 | 158 |
('cloudcmsfaq', 'Cloud FAQ', {'urls': 'cloudcmsfaq.urls'}),)) |
154 | 159 |
|
155 |
|
|
156 | 160 |
# cloudcms specific content registration |
157 | 161 |
Page.create_content_type(LoginForm) |
158 | 162 |
Page.create_content_type(AboutBlock) |
159 | 163 |
Page.create_content_type(ResourcesList) |
160 | 164 |
|
161 | 165 |
|
166 |
# Extra cms applications |
|
167 |
EXTRA_CONTENT_MODELS = [] |
|
168 |
|
|
169 |
if 'cloudcmsblog' in settings.INSTALLED_APPS: |
|
170 |
from cloudcmsblog.models import Entry, LatestEntries |
|
171 |
EXTRA_CONTENT_MODELS.append(Entry) |
|
172 |
Page.create_content_type(LatestEntries) |
|
162 | 173 |
|
163 |
for model in [Entry, Question]: |
|
174 |
if 'cloudcmsfaq' in settings.INSTALLED_APPS: |
|
175 |
from cloudcmsfaq.models import Question |
|
176 |
EXTRA_CONTENT_MODELS.append(Question) |
|
177 |
|
|
178 |
for model in EXTRA_CONTENT_MODELS: |
|
164 | 179 |
# Feincms specific registrations for our blog entry model |
165 | 180 |
model.register_regions( |
166 | 181 |
('main', _('Main content area')), |
167 | 182 |
('sidebar', _('Right column')), |
168 | 183 |
) |
169 |
model.create_content_type(TemplateContent) |
|
170 | 184 |
model.create_content_type(RawContent) |
185 |
model.create_content_type(TemplateContent) |
|
171 | 186 |
model.create_content_type(SectionContent, TYPE_CHOICES=(('block', 'Block'),)) |
172 | 187 |
model.create_content_type(RichTextContent, cleanse=False, regions=('main',)) |
188 |
model.create_content_type(ImageContent, POSITION_CHOICES=( |
|
189 |
('default', 'Default position'), |
|
190 |
)) |
|
173 | 191 |
|
b/cloudcms/migrate/cloudcmsblog/0007_auto__add_imagecontent.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 |
# Adding model 'ImageContent' |
|
12 |
db.create_table('cloudcmsblog_entry_imagecontent', ( |
|
13 |
('parent', self.gf('django.db.models.fields.related.ForeignKey')(related_name='imagecontent_set', to=orm['cloudcmsblog.Entry'])), |
|
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('cloudcmsblog', ['ImageContent']) |
|
21 |
|
|
22 |
|
|
23 |
def backwards(self, orm): |
|
24 |
|
|
25 |
# Deleting model 'ImageContent' |
|
26 |
db.delete_table('cloudcmsblog_entry_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 |
'cloudcmsblog.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 |
'cloudcmsblog.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['cloudcmsblog.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 |
'cloudcmsblog.entry': { |
|
93 |
'Meta': {'object_name': 'Entry'}, |
|
94 |
'application': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'blogentries'", 'symmetrical': 'False', 'to': "orm['cloudcms.Application']"}), |
|
95 |
'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blogentries'", 'to': "orm['auth.User']"}), |
|
96 |
'categories': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'blogentries'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['cloudcmsblog.Category']"}), |
|
97 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
98 |
'image': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'to': "orm['medialibrary.MediaFile']", 'null': 'True', 'blank': 'True'}), |
|
99 |
'intro_text': ('django.db.models.fields.TextField', [], {'max_length': '255', 'blank': 'True'}), |
|
100 |
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), |
|
101 |
'is_featured': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|
102 |
'language': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
|
103 |
'last_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
104 |
'published_on': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'null': 'True', 'blank': 'True'}), |
|
105 |
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '100', 'db_index': 'True'}), |
|
106 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
|
107 |
}, |
|
108 |
'cloudcmsblog.imagecontent': { |
|
109 |
'Meta': {'object_name': 'ImageContent', 'db_table': "'cloudcmsblog_entry_imagecontent'"}, |
|
110 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
111 |
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}), |
|
112 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
|
113 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'imagecontent_set'", 'to': "orm['cloudcmsblog.Entry']"}), |
|
114 |
'position': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '10'}), |
|
115 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}) |
|
116 |
}, |
|
117 |
'cloudcmsblog.rawcontent': { |
|
118 |
'Meta': {'object_name': 'RawContent', 'db_table': "'cloudcmsblog_entry_rawcontent'"}, |
|
119 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
120 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
|
121 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rawcontent_set'", 'to': "orm['cloudcmsblog.Entry']"}), |
|
122 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
|
123 |
'text': ('django.db.models.fields.TextField', [], {'blank': 'True'}) |
|
124 |
}, |
|
125 |
'cloudcmsblog.richtextcontent': { |
|
126 |
'Meta': {'object_name': 'RichTextContent', 'db_table': "'cloudcmsblog_entry_richtextcontent'"}, |
|
127 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
128 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
|
129 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'richtextcontent_set'", 'to': "orm['cloudcmsblog.Entry']"}), |
|
130 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
|
131 |
'text': ('django.db.models.fields.TextField', [], {'blank': 'True'}) |
|
132 |
}, |
|
133 |
'cloudcmsblog.sectioncontent': { |
|
134 |
'Meta': {'object_name': 'SectionContent', 'db_table': "'cloudcmsblog_entry_sectioncontent'"}, |
|
135 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
136 |
'mediafile': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'cloudcmsblog_sectioncontent_set'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}), |
|
137 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
|
138 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sectioncontent_set'", 'to': "orm['cloudcmsblog.Entry']"}), |
|
139 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
|
140 |
'richtext': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
|
141 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), |
|
142 |
'type': ('django.db.models.fields.CharField', [], {'default': "'block'", 'max_length': '10'}) |
|
143 |
}, |
|
144 |
'cloudcmsblog.templatecontent': { |
|
145 |
'Meta': {'object_name': 'TemplateContent', 'db_table': "'cloudcmsblog_entry_templatecontent'"}, |
|
146 |
'filename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
147 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
148 |
'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
|
149 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'templatecontent_set'", 'to': "orm['cloudcmsblog.Entry']"}), |
|
150 |
'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}) |
|
151 |
}, |
|
152 |
'contenttypes.contenttype': { |
|
153 |
'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
|
154 |
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
155 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
156 |
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
157 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
|
158 |
}, |
|
159 |
'medialibrary.category': { |
|
160 |
'Meta': {'object_name': 'Category'}, |
|
161 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
162 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['medialibrary.Category']"}), |
|
163 |
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '150', 'db_index': 'True'}), |
|
164 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '200'}) |
|
165 |
}, |
|
166 |
'medialibrary.mediafile': { |
|
167 |
'Meta': {'object_name': 'MediaFile'}, |
|
168 |
'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['medialibrary.Category']", 'null': 'True', 'blank': 'True'}), |
|
169 |
'copyright': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), |
|
170 |
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
|
171 |
'file': ('django.db.models.fields.files.FileField', [], {'max_length': '255'}), |
|
172 |
'file_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
|
173 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
174 |
'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}) |
|
175 |
}, |
|
176 |
'sites.site': { |
|
177 |
'Meta': {'object_name': 'Site', 'db_table': "'django_site'"}, |
|
178 |
'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
179 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
180 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
|
181 |
} |
|
182 |
} |
|
183 |
|
|
184 |
complete_apps = ['cloudcmsblog'] |
b/cloudcms/migrate/cloudcmsfaq/0004_auto__add_imagecontent.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 |
# 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'] |
Also available in: Unified diff