Revision 396cafbb

b/cloudcms/migrations/0020_auto__del_field_application_show_twitter_feed_on_top.py
1
# -*- coding: 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

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Deleting field 'Application.show_twitter_feed_on_top'
12
        db.delete_column('cloudcms_application', 'show_twitter_feed_on_top')
13

  
14

  
15
    def backwards(self, orm):
16
        # Adding field 'Application.show_twitter_feed_on_top'
17
        db.add_column('cloudcms_application', 'show_twitter_feed_on_top',
18
                      self.gf('django.db.models.fields.BooleanField')(default=False),
19
                      keep_default=False)
20

  
21

  
22
    models = {
23
        'cloudcms.application': {
24
            'Meta': {'object_name': 'Application'},
25
            'accounts_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '255', 'null': 'True', 'blank': 'True'}),
26
            'app_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
27
            'code': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
28
            'custom_message': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
29
            'extra_styles': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
30
            'facebook_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
31
            'favicon': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'blank': 'True', 'related_name': "'as_favicon'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}),
32
            'footer_bottom': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
33
            'footer_top': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'index_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '255'}),
36
            'linked_in_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
37
            'logo': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'to': "orm['medialibrary.MediaFile']", 'null': 'True', 'blank': 'True'}),
38
            'message_type': ('django.db.models.fields.CharField', [], {'default': "'NM'", 'max_length': '20'}),
39
            'show_rss_feed_on_blog': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
40
            'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['sites.Site']"}),
41
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
42
            'twitter_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
43
        },
44
        'cloudcms.client': {
45
            'Meta': {'object_name': 'Client'},
46
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
48
            'uid': ('django.db.models.fields.CharField', [], {'max_length': '255'})
49
        },
50
        'cloudcms.clientversionsource': {
51
            'Meta': {'object_name': 'ClientVersionSource'},
52
            'architecture': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
53
            'client': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cloudcms.Client']"}),
54
            'default': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
55
            'file_regex': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
56
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
            'link': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
58
            'logo': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'to': "orm['medialibrary.MediaFile']", 'null': 'True', 'blank': 'True'}),
59
            'os': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
60
            'source_type': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
61
            'version_regex': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
62
        },
63
        'cloudcms.service': {
64
            'Meta': {'ordering': "['-ordering']", 'object_name': 'Service'},
65
            'class_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
66
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
            'image_faq': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'blank': 'True', 'related_name': "'image_faq'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}),
68
            'image_userguide': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'blank': 'True', 'related_name': "'image_userguide'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}),
69
            'ordering': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
70
        },
71
        'cloudcms.servicetranslation': {
72
            'Meta': {'ordering': "['title']", 'object_name': 'ServiceTranslation'},
73
            'cms_page': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['page.Page']", 'null': 'True', 'blank': 'True'}),
74
            'description': ('django.db.models.fields.CharField', [], {'max_length': '250', 'blank': 'True'}),
75
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'language_code': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '10'}),
77
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['cloudcms.Service']"}),
78
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
79
            'title': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
80
            'title_faq': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
81
            'title_userguide': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
82
        },
83
        'medialibrary.category': {
84
            'Meta': {'ordering': "['parent__title', 'title']", 'object_name': 'Category'},
85
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['medialibrary.Category']"}),
87
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '150'}),
88
            'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
89
        },
90
        'medialibrary.mediafile': {
91
            'Meta': {'ordering': "['-created']", 'object_name': 'MediaFile'},
92
            'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['medialibrary.Category']", 'null': 'True', 'blank': 'True'}),
93
            'copyright': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
94
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
95
            'file': ('django.db.models.fields.files.FileField', [], {'max_length': '255'}),
96
            'file_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
97
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98
            'type': ('django.db.models.fields.CharField', [], {'max_length': '12'})
99
        },
100
        'page.page': {
101
            'Meta': {'ordering': "['tree_id', 'lft']", 'object_name': 'Page'},
102
            '_cached_url': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '300', 'db_index': 'True', 'blank': 'True'}),
103
            '_content_title': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
104
            '_page_title': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
105
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
106
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
107
            'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
109
            'in_navigation': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
110
            'language': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '10'}),
111
            'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
112
            'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
113
            'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
114
            'meta_keywords': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
115
            'modification_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
116
            'navigation_extension': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
117
            'override_url': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
118
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['page.Page']"}),
119
            'publication_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2014, 5, 12, 0, 0)'}),
120
            'publication_end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
121
            'redirect_to': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
122
            'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
123
            'site': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['sites.Site']"}),
124
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '150'}),
125
            'symlinked_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'page_page_symlinks'", 'null': 'True', 'to': "orm['page.Page']"}),
126
            'template_key': ('django.db.models.fields.CharField', [], {'default': "'twocolwide'", 'max_length': '255'}),
127
            'title': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
128
            'translation_of': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'translations'", 'null': 'True', 'to': "orm['page.Page']"}),
129
            'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
130
        },
131
        'sites.site': {
132
            'Meta': {'ordering': "('domain',)", 'object_name': 'Site', 'db_table': "'django_site'"},
133
            'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
134
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
135
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
136
        }
137
    }
138

  
139
    complete_apps = ['cloudcms']
b/cloudcms/models.py
88 88
    linked_in_username = models.CharField(max_length=255, blank=True)
89 89
    twitter_username = models.CharField(max_length=255, blank=True)
90 90
    facebook_username = models.CharField(max_length=255, blank=True)
91

  
92
    show_twitter_feed_on_top = models.BooleanField(default=False)
93 91
    show_rss_feed_on_blog = models.BooleanField(default=False)
94 92
    extra_styles = models.TextField(default="", blank=True)
95

  
96 93
    footer_top = models.TextField(default="", blank=True)
97 94
    footer_bottom = models.TextField(default="", blank=True)
98

  
99 95
    message_type = models.CharField(max_length=20,
100 96
                                    choices=MESSAGE_TYPE_CHOICES,
101 97
                                    default='NM')

Also available in: Unified diff