1 # -*- coding: utf-8 -*-
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):
11 # Adding field 'Lesson.description'
12 db.add_column(u'catalogue_lesson', 'description',
13 self.gf('django.db.models.fields.TextField')(null=True, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Lesson.description'
19 db.delete_column(u'catalogue_lesson', 'description')
23 u'catalogue.attachment': {
24 'Meta': {'ordering': "['slug', 'ext']", 'unique_together': "(['lesson', 'slug', 'ext'],)", 'object_name': 'Attachment'},
25 'ext': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
26 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
27 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Lesson']"}),
29 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
31 u'catalogue.lesson': {
32 'Meta': {'ordering': "['section', 'level', 'order']", 'object_name': 'Lesson'},
33 'curriculum_courses': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['curriculum.CurriculumCourse']", 'symmetrical': 'False', 'blank': 'True'}),
34 'dc': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
35 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
36 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
37 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"}),
39 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
40 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
41 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
42 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
43 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'}),
44 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
45 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
46 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
47 'type': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
48 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
50 u'catalogue.lessonstub': {
51 'Meta': {'ordering': "['section', 'level', 'order']", 'object_name': 'LessonStub'},
52 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"}),
54 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
55 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
56 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
57 'type': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'})
60 'Meta': {'object_name': 'Part'},
61 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Lesson']"}),
63 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
64 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
66 u'catalogue.section': {
67 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
68 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
70 'order': ('django.db.models.fields.IntegerField', [], {}),
71 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'}),
72 'summary': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
73 'title': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
74 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
76 u'curriculum.curriculumcourse': {
77 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
78 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
79 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
80 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
81 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
83 u'curriculum.level': {
84 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
85 'group_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
86 'group_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
87 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
89 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
90 'order': ('django.db.models.fields.IntegerField', [], {}),
91 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
95 complete_apps = ['catalogue']