1 # -*- coding: utf-8 -*-
2 from south.utils import datetime_utils as datetime
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 'CurriculumLevel.verbose'
12 db.add_column(u'curriculum_curriculumlevel', 'verbose',
13 self.gf('django.db.models.fields.CharField')(default='', max_length=32),
17 def backwards(self, orm):
18 # Deleting field 'CurriculumLevel.verbose'
19 db.delete_column(u'curriculum_curriculumlevel', 'verbose')
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': {'ordering': "['identifier']", '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', [], {'unique': 'True', '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': '1024'}),
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'}),
60 'verbose': ('django.db.models.fields.CharField', [], {'max_length': '32'})
62 u'curriculum.level': {
63 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
64 'group_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
65 'group_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
66 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67 'meta_name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
68 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
69 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
70 'order': ('django.db.models.fields.IntegerField', [], {}),
71 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
72 'slug': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
73 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
75 u'curriculum.section': {
76 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
77 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
79 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
80 'order': ('django.db.models.fields.IntegerField', [], {}),
81 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
85 complete_apps = ['curriculum']