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 # Deleting field 'Lesson.depth'
12 db.delete_column('catalogue_lesson', 'depth')
15 def backwards(self, orm):
16 # Adding field 'Lesson.depth'
17 db.add_column('catalogue_lesson', 'depth',
18 self.gf('django.db.models.fields.IntegerField')(default=1),
23 '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 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Lesson']"}),
29 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
32 'Meta': {'ordering': "['section', 'level', 'order']", 'object_name': 'Lesson'},
33 'dc': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
34 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Level']"}),
37 'order': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
38 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
39 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
40 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Section']", 'null': 'True', 'blank': 'True'}),
41 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
42 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
43 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', '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': '100', 'null': 'True', 'blank': 'True'})
49 'Meta': {'object_name': 'Part'},
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Lesson']"}),
52 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
53 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
55 'catalogue.section': {
56 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
57 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58 'order': ('django.db.models.fields.IntegerField', [], {}),
59 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
60 'title': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
63 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
64 'group': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
65 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
67 'order': ('django.db.models.fields.IntegerField', [], {}),
68 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
72 complete_apps = ['catalogue']