Merge branch 'leveling'
[edumed.git] / curriculum / migrations / 0002_auto__add_field_level_group.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 field 'Level.group'
12         db.add_column('curriculum_level', 'group',
13                       self.gf('django.db.models.fields.CharField')(default='', max_length=255),
14                       keep_default=False)
15
16
17     def backwards(self, orm):
18         # Deleting field 'Level.group'
19         db.delete_column('curriculum_level', 'group')
20
21
22     models = {
23         'curriculum.competence': {
24             'Meta': {'ordering': "['order']", 'object_name': 'Competence'},
25             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
27             'order': ('django.db.models.fields.IntegerField', [], {}),
28             'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Section']"}),
29             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
30         },
31         'curriculum.competencelevel': {
32             'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
33             'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Competence']"}),
34             'description': ('django.db.models.fields.TextField', [], {}),
35             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36             'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['curriculum.Level']"})
37         },
38         'curriculum.level': {
39             'Meta': {'ordering': "['order']", 'object_name': 'Level'},
40             'group': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
41             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
43             'order': ('django.db.models.fields.IntegerField', [], {}),
44             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
45         },
46         'curriculum.section': {
47             'Meta': {'ordering': "['order']", 'object_name': 'Section'},
48             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
50             'order': ('django.db.models.fields.IntegerField', [], {}),
51             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
52         }
53     }
54
55     complete_apps = ['curriculum']