Statistics
| Branch: | Tag: | Revision:

root / cloudcmsresources / migrations / 0005_auto__chg_field_resourcetranslation_description.py @ 7fa8ecdf

History | View | Annotate | Download (4.8 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 'ResourceTranslation.description'
12
        db.alter_column('cloudcmsresources_resourcetranslation', 'description', self.gf('django.db.models.fields.TextField')(blank=True))
13
    
14
    
15
    def backwards(self, orm):
16
        
17
        # Changing field 'ResourceTranslation.description'
18
        db.alter_column('cloudcmsresources_resourcetranslation', 'description', self.gf('django.db.models.fields.CharField')(max_length=250, blank=True))
19
    
20
    
21
    models = {
22
        'cloudcmsresources.resource': {
23
            'Meta': {'object_name': 'Resource'},
24
            'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cloudcmsresources.ResourceCategory']"}),
25
            'filetype': ('django.db.models.fields.CharField', [], {'default': "'PDF'", 'max_length': '255', 'null': 'True', 'blank': 'True'}),
26
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'media_file': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'to': "orm['medialibrary.MediaFile']"}),
28
            'ordering': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
29
        },
30
        'cloudcmsresources.resourcecategory': {
31
            'Meta': {'object_name': 'ResourceCategory'},
32
            'color': ('django.db.models.fields.CharField', [], {'default': "'#FAAF40'", 'max_length': '255'}),
33
            'display_on_menu': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'ordering': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
36
        },
37
        'cloudcmsresources.resourcecategorytranslation': {
38
            'Meta': {'object_name': 'ResourceCategoryTranslation'},
39
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'language_code': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '10'}),
42
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['cloudcmsresources.ResourceCategory']"}),
43
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}),
44
            'title': ('django.db.models.fields.CharField', [], {'max_length': '100'})
45
        },
46
        'cloudcmsresources.resourcetranslation': {
47
            'Meta': {'object_name': 'ResourceTranslation'},
48
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
49
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'language_code': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '10'}),
51
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['cloudcmsresources.Resource']"}),
52
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}),
53
            'title': ('django.db.models.fields.CharField', [], {'max_length': '100'})
54
        },
55
        'medialibrary.category': {
56
            'Meta': {'object_name': 'Category'},
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['medialibrary.Category']"}),
59
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '150', 'db_index': 'True'}),
60
            'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
61
        },
62
        'medialibrary.mediafile': {
63
            'Meta': {'object_name': 'MediaFile'},
64
            'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['medialibrary.Category']", 'null': 'True', 'blank': 'True'}),
65
            'copyright': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
66
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
67
            'file': ('django.db.models.fields.files.FileField', [], {'max_length': '255'}),
68
            'file_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
69
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70
            'type': ('django.db.models.fields.CharField', [], {'max_length': '12'})
71
        }
72
    }
73
    
74
    complete_apps = ['cloudcmsresources']