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 'Level.meta_name'
12 db.add_column(u'curriculum_level', 'meta_name',
13 self.gf('django.db.models.fields.CharField')(default=' ', max_length=255),
17 def backwards(self, orm):
18 # Deleting field 'Level.meta_name'
19 db.delete_column(u'curriculum_level', 'meta_name')
23 u'curriculum.competence': {
24 'Meta': {'ordering': "['section', 'order']", 'object_name': 'Competence'},
25 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
27 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
28 'order': ('django.db.models.fields.IntegerField', [], {}),
29 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Section']"}),
30 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
32 u'curriculum.competencelevel': {
33 'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
34 'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Competence']"}),
35 'description_en': ('django.db.models.fields.TextField', [], {'default': "''"}),
36 'description_pl': ('django.db.models.fields.TextField', [], {'default': "''"}),
37 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"})
40 u'curriculum.curriculum': {
41 'Meta': {'object_name': 'Curriculum'},
42 'course': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumCourse']"}),
43 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
45 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumLevel']"}),
46 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
47 'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
49 u'curriculum.curriculumcourse': {
50 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
51 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
52 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
54 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
56 u'curriculum.curriculumlevel': {
57 'Meta': {'object_name': 'CurriculumLevel'},
58 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
61 u'curriculum.level': {
62 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
63 'group_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
64 'group_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
65 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'meta_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
67 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
68 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
69 'order': ('django.db.models.fields.IntegerField', [], {}),
70 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
72 u'curriculum.section': {
73 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
74 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
76 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
77 'order': ('django.db.models.fields.IntegerField', [], {}),
78 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
82 complete_apps = ['curriculum']