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.dc'
12 db.add_column('catalogue_lesson', 'dc',
13 self.gf('jsonfield.fields.JSONField')(default='{}'),
17 def backwards(self, orm):
18 # Deleting field 'Lesson.dc'
19 db.delete_column('catalogue_lesson', 'dc')
23 'catalogue.attachment': {
24 'Meta': {'object_name': 'Attachment'},
25 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
26 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Lesson']"})
30 'Meta': {'ordering': "['section', 'level', 'depth', 'order']", 'object_name': 'Lesson'},
31 'dc': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
32 'depth': ('django.db.models.fields.IntegerField', [], {}),
33 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
34 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Level']"}),
36 'order': ('django.db.models.fields.IntegerField', [], {}),
37 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
38 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
39 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Section']"}),
40 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
41 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
42 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
43 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
44 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
47 'Meta': {'object_name': 'Part'},
48 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49 'lesson': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Lesson']"}),
50 'pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
51 'student_pdf': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
53 'catalogue.section': {
54 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
55 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56 'order': ('django.db.models.fields.IntegerField', [], {}),
57 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
58 'title': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
61 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
62 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
64 'order': ('django.db.models.fields.IntegerField', [], {}),
65 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
69 complete_apps = ['catalogue']