turniej -> olimpiada
[edumed.git] / curriculum / migrations / 0004_auto__add_curriculum__add_curriculumlevel__add_curriculumcourse.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 'Curriculum'
12         db.create_table('curriculum_curriculum', (
13             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('identifier', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
15             ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
16             ('course', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['curriculum.CurriculumCourse'])),
17             ('level', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['curriculum.CurriculumLevel'])),
18             ('type', self.gf('django.db.models.fields.CharField')(max_length=16)),
19         ))
20         db.send_create_signal('curriculum', ['Curriculum'])
21
22         # Adding model 'CurriculumLevel'
23         db.create_table('curriculum_curriculumlevel', (
24             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
25             ('title', self.gf('django.db.models.fields.CharField')(max_length=16, db_index=True)),
26         ))
27         db.send_create_signal('curriculum', ['CurriculumLevel'])
28
29         # Adding model 'CurriculumCourse'
30         db.create_table('curriculum_curriculumcourse', (
31             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
32             ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
33             ('slug', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
34         ))
35         db.send_create_signal('curriculum', ['CurriculumCourse'])
36
37
38     def backwards(self, orm):
39         # Deleting model 'Curriculum'
40         db.delete_table('curriculum_curriculum')
41
42         # Deleting model 'CurriculumLevel'
43         db.delete_table('curriculum_curriculumlevel')
44
45         # Deleting model 'CurriculumCourse'
46         db.delete_table('curriculum_curriculumcourse')
47
48
49     models = {
50         'curriculum.competence': {
51             'Meta': {'ordering': "['order']", 'object_name': 'Competence'},
52             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
54             'order': ('django.db.models.fields.IntegerField', [], {}),
55             'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Section']"}),
56             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
57         },
58         'curriculum.competencelevel': {
59             'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
60             'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Competence']"}),
61             'description': ('django.db.models.fields.TextField', [], {}),
62             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63             'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Level']"})
64         },
65         'curriculum.curriculum': {
66             'Meta': {'object_name': 'Curriculum'},
67             'course': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.CurriculumCourse']"}),
68             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69             'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
70             'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.CurriculumLevel']"}),
71             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
72             'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
73         },
74         'curriculum.curriculumcourse': {
75             'Meta': {'object_name': 'CurriculumCourse'},
76             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77             'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
78             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
79         },
80         'curriculum.curriculumlevel': {
81             'Meta': {'object_name': 'CurriculumLevel'},
82             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83             'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
84         },
85         'curriculum.level': {
86             'Meta': {'ordering': "['order']", 'object_name': 'Level'},
87             'group': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
88             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
90             'order': ('django.db.models.fields.IntegerField', [], {}),
91             'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
92         },
93         'curriculum.section': {
94             'Meta': {'ordering': "['order']", 'object_name': 'Section'},
95             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
97             'order': ('django.db.models.fields.IntegerField', [], {}),
98             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
99         }
100     }
101
102     complete_apps = ['curriculum']