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 'Section.summary'
12 db.add_column(u'catalogue_section', 'summary',
13 self.gf('django.db.models.fields.TextField')(null=True, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Section.summary'
19 db.delete_column(u'catalogue_section', 'summary')
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 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
36 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"}),
38 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
39 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
40 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
41 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
42 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'}),
43 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
44 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
45 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
46 'type': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
47 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
49 u'catalogue.lessonstub': {
50 'Meta': {'ordering': "['section', 'level', 'order']", 'object_name': 'LessonStub'},
51 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"}),
53 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
54 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
55 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
56 'type': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'})
59 'Meta': {'object_name': 'Part'},
60 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Lesson']"}),
62 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
63 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
65 u'catalogue.section': {
66 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
67 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
69 'order': ('django.db.models.fields.IntegerField', [], {}),
70 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'}),
71 'summary': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
72 'title': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
73 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
75 u'curriculum.curriculumcourse': {
76 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
77 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
78 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
80 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
82 u'curriculum.level': {
83 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
84 'group_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
85 'group_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
86 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
88 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
89 'order': ('django.db.models.fields.IntegerField', [], {}),
90 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
94 complete_apps = ['catalogue']