Statistics
| Branch: | Tag: | Revision:

root / cloudcms / migrate / cloudcmsguide / 0003_auto__chg_field_userguideentry_is_featured__chg_field_userguideentry_i.py @ b295ae41

History | View | Annotate | Download (12.1 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 'UserGuideEntry.is_featured'
12
        db.alter_column('cloudcmsguide_userguideentry', 'is_featured', self.gf('django.db.models.fields.BooleanField')(blank=True))
13

    
14
        # Changing field 'UserGuideEntry.is_active'
15
        db.alter_column('cloudcmsguide_userguideentry', 'is_active', self.gf('django.db.models.fields.BooleanField')(blank=True))
16
    
17
    
18
    def backwards(self, orm):
19
        
20
        # Changing field 'UserGuideEntry.is_featured'
21
        db.alter_column('cloudcmsguide_userguideentry', 'is_featured', self.gf('django.db.models.fields.BooleanField')())
22

    
23
        # Changing field 'UserGuideEntry.is_active'
24
        db.alter_column('cloudcmsguide_userguideentry', 'is_active', self.gf('django.db.models.fields.BooleanField')())
25
    
26
    
27
    models = {
28
        'auth.group': {
29
            'Meta': {'object_name': 'Group'},
30
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
32
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
33
        },
34
        'auth.permission': {
35
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
36
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
37
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
38
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
40
        },
41
        'auth.user': {
42
            'Meta': {'object_name': 'User'},
43
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
44
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
45
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
46
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
47
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
49
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
50
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
51
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
52
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
53
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
54
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
55
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
56
        },
57
        'cloudcms.service': {
58
            'Meta': {'object_name': 'Service'},
59
            'class_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
60
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61
            'image_faq': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'blank': 'True', 'related_name': "'image_faq'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}),
62
            'image_userguide': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'blank': 'True', 'related_name': "'image_userguide'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}),
63
            'ordering': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
64
        },
65
        'cloudcmsguide.imagecontent': {
66
            'Meta': {'object_name': 'ImageContent', 'db_table': "'cloudcmsguide_userguideentry_imagecontent'"},
67
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68
            'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
69
            'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
70
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'imagecontent_set'", 'to': "orm['cloudcmsguide.UserGuideEntry']"}),
71
            'position': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '10'}),
72
            'region': ('django.db.models.fields.CharField', [], {'max_length': '255'})
73
        },
74
        'cloudcmsguide.rawcontent': {
75
            'Meta': {'object_name': 'RawContent', 'db_table': "'cloudcmsguide_userguideentry_rawcontent'"},
76
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
78
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rawcontent_set'", 'to': "orm['cloudcmsguide.UserGuideEntry']"}),
79
            'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
80
            'text': ('django.db.models.fields.TextField', [], {'blank': 'True'})
81
        },
82
        'cloudcmsguide.richtextcontent': {
83
            'Meta': {'object_name': 'RichTextContent', 'db_table': "'cloudcmsguide_userguideentry_richtextcontent'"},
84
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
86
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'richtextcontent_set'", 'to': "orm['cloudcmsguide.UserGuideEntry']"}),
87
            'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
88
            'text': ('django.db.models.fields.TextField', [], {'blank': 'True'})
89
        },
90
        'cloudcmsguide.sectioncontent': {
91
            'Meta': {'object_name': 'SectionContent', 'db_table': "'cloudcmsguide_userguideentry_sectioncontent'"},
92
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'mediafile': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'cloudcmsguide_sectioncontent_set'", 'null': 'True', 'to': "orm['medialibrary.MediaFile']"}),
94
            'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
95
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sectioncontent_set'", 'to': "orm['cloudcmsguide.UserGuideEntry']"}),
96
            'region': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
97
            'richtext': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
98
            'title': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
99
            'type': ('django.db.models.fields.CharField', [], {'default': "'block'", 'max_length': '10'})
100
        },
101
        'cloudcmsguide.templatecontent': {
102
            'Meta': {'object_name': 'TemplateContent', 'db_table': "'cloudcmsguide_userguideentry_templatecontent'"},
103
            'filename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
104
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105
            'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
106
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'templatecontent_set'", 'to': "orm['cloudcmsguide.UserGuideEntry']"}),
107
            'region': ('django.db.models.fields.CharField', [], {'max_length': '255'})
108
        },
109
        'cloudcmsguide.userguideentry': {
110
            'Meta': {'object_name': 'UserGuideEntry'},
111
            'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'guide_pages'", 'to': "orm['auth.User']"}),
112
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
113
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
114
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
115
            'is_featured': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
116
            'language': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
117
            'last_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
118
            'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
119
            'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
120
            'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
121
            'meta_keywords': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
122
            'modification_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
123
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['cloudcmsguide.UserGuideEntry']"}),
124
            'published_on': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'null': 'True', 'blank': 'True'}),
125
            'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
126
            'service': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'userguideentries'", 'null': 'True', 'to': "orm['cloudcms.Service']"}),
127
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '100', 'db_index': 'True'}),
128
            'title': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
129
            'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
130
        },
131
        'contenttypes.contenttype': {
132
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
133
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
134
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
135
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
136
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
137
        },
138
        'medialibrary.category': {
139
            'Meta': {'object_name': 'Category'},
140
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
141
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['medialibrary.Category']"}),
142
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '150', 'db_index': 'True'}),
143
            'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
144
        },
145
        'medialibrary.mediafile': {
146
            'Meta': {'object_name': 'MediaFile'},
147
            'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['medialibrary.Category']", 'null': 'True', 'blank': 'True'}),
148
            'copyright': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
149
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
150
            'file': ('django.db.models.fields.files.FileField', [], {'max_length': '255'}),
151
            'file_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
152
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
153
            'type': ('django.db.models.fields.CharField', [], {'max_length': '12'})
154
        }
155
    }
156
    
157
    complete_apps = ['cloudcmsguide']