1 # -*- coding: utf-8 -*-
2 from south.utils import datetime_utils as datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
12 # Changing field 'Attachment.file'
13 db.alter_column(u'catalogue_attachment', 'file', self.gf('django.db.models.fields.files.FileField')(max_length=255))
15 def backwards(self, orm):
17 # Changing field 'Attachment.file'
18 db.alter_column(u'catalogue_attachment', 'file', self.gf('django.db.models.fields.files.FileField')(max_length=100))
21 u'catalogue.attachment': {
22 'Meta': {'ordering': "['slug', 'ext']", 'unique_together': "(['lesson', 'slug', 'ext'],)", 'object_name': 'Attachment'},
23 'ext': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
24 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '255'}),
25 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Lesson']"}),
27 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
29 u'catalogue.lesson': {
30 'Meta': {'ordering': "['section', 'level', 'order']", 'object_name': 'Lesson'},
31 'curriculum_courses': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['curriculum.CurriculumCourse']", 'symmetrical': 'False', 'blank': 'True'}),
32 'dc': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
33 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
34 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
35 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"}),
37 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
38 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
39 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
40 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
41 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'}),
42 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
43 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
44 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
45 'type': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
46 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
48 u'catalogue.lessonstub': {
49 'Meta': {'ordering': "['section', 'level', 'order']", 'object_name': 'LessonStub'},
50 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"}),
52 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
53 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
54 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
55 'type': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'})
58 'Meta': {'object_name': 'Part'},
59 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Lesson']"}),
61 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
62 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
64 u'catalogue.section': {
65 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
66 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
68 'order': ('django.db.models.fields.IntegerField', [], {}),
69 'pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
70 'pic_attribution': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
71 'pic_src': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
72 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'}),
73 'summary': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
74 'title': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
75 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
77 u'curriculum.curriculumcourse': {
78 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
79 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
80 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
82 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
84 u'curriculum.level': {
85 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
86 'group_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
87 'group_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
88 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'meta_name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
90 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
91 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
92 'order': ('django.db.models.fields.IntegerField', [], {}),
93 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
94 'slug': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
95 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
99 complete_apps = ['catalogue']