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.slug'
12 db.add_column('catalogue_section', 'slug',
13 self.gf('django.db.models.fields.SlugField')(default='x', max_length=50),
17 def backwards(self, orm):
18 # Deleting field 'Section.slug'
19 db.delete_column('catalogue_section', 'slug')
24 'Meta': {'ordering': "['section', 'level', 'depth', 'order']", 'object_name': 'Lesson'},
25 'depth': ('django.db.models.fields.IntegerField', [], {}),
26 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
27 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Level']"}),
29 'order': ('django.db.models.fields.IntegerField', [], {}),
30 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
31 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Section']"}),
32 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
33 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
34 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
35 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
37 'catalogue.section': {
38 'Meta': {'object_name': 'Section'},
39 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40 'order': ('django.db.models.fields.IntegerField', [], {}),
41 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
42 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
45 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
46 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
48 'order': ('django.db.models.fields.IntegerField', [], {}),
49 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
53 complete_apps = ['catalogue']