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 model 'LessonStub'
12 db.create_table('catalogue_lessonstub', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('section', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Section'], null=True, blank=True)),
15 ('level', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['curriculum.Level'])),
16 ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
17 ('type', self.gf('django.db.models.fields.CharField')(max_length=15, db_index=True)),
18 ('order', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
20 db.send_create_signal('catalogue', ['LessonStub'])
23 def backwards(self, orm):
24 # Deleting model 'LessonStub'
25 db.delete_table('catalogue_lessonstub')
29 'catalogue.attachment': {
30 'Meta': {'ordering': "['slug', 'ext']", 'unique_together': "(['lesson', 'slug', 'ext'],)", 'object_name': 'Attachment'},
31 'ext': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
32 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Lesson']"}),
35 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
38 'Meta': {'ordering': "['section', 'level', 'order']", 'object_name': 'Lesson'},
39 'curriculum_courses': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['curriculum.CurriculumCourse']", 'symmetrical': 'False'}),
40 'dc': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
41 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Level']"}),
44 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
45 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
46 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
47 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
48 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'}),
49 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
50 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
51 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
52 'type': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
53 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
55 'catalogue.lessonstub': {
56 'Meta': {'ordering': "['section', 'level', 'order']", 'object_name': 'LessonStub'},
57 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Level']"}),
59 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
60 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
61 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
62 'type': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'})
65 'Meta': {'object_name': 'Part'},
66 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Lesson']"}),
68 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
69 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
71 'catalogue.section': {
72 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
73 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74 'order': ('django.db.models.fields.IntegerField', [], {}),
75 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'}),
76 'title': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
77 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
79 'curriculum.curriculumcourse': {
80 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
81 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
82 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
84 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
87 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
88 'group': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
89 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
91 'order': ('django.db.models.fields.IntegerField', [], {}),
92 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
96 complete_apps = ['catalogue']