Full slicing in examiners assignment
[edumed.git] / catalogue / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11         # Adding model 'Section'
12         db.create_table('catalogue_section', (
13             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
15             ('order', self.gf('django.db.models.fields.IntegerField')()),
16         ))
17         db.send_create_signal('catalogue', ['Section'])
18
19         # Adding model 'Lesson'
20         db.create_table('catalogue_lesson', (
21             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
22             ('section', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Section'])),
23             ('level', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['curriculum.Level'])),
24             ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
25             ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=50)),
26             ('depth', self.gf('django.db.models.fields.IntegerField')()),
27             ('order', self.gf('django.db.models.fields.IntegerField')()),
28             ('xml_file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
29             ('package', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
30             ('student_package', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
31             ('html_file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
32         ))
33         db.send_create_signal('catalogue', ['Lesson'])
34
35
36     def backwards(self, orm):
37         # Deleting model 'Section'
38         db.delete_table('catalogue_section')
39
40         # Deleting model 'Lesson'
41         db.delete_table('catalogue_lesson')
42
43
44     models = {
45         'catalogue.lesson': {
46             'Meta': {'ordering': "['section', 'level', 'depth', 'order']", 'object_name': 'Lesson'},
47             'depth': ('django.db.models.fields.IntegerField', [], {}),
48             'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
49             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50             'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Level']"}),
51             'order': ('django.db.models.fields.IntegerField', [], {}),
52             'package': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
53             'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Section']"}),
54             'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
55             'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
56             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
57             'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
58         },
59         'catalogue.section': {
60             'Meta': {'object_name': 'Section'},
61             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62             'order': ('django.db.models.fields.IntegerField', [], {}),
63             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
64         },
65         'curriculum.level': {
66             'Meta': {'ordering': "['order']", 'object_name': 'Level'},
67             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
69             'order': ('django.db.models.fields.IntegerField', [], {}),
70             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
71         }
72     }
73
74     complete_apps = ['catalogue']