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):
12 # Changing field 'Curriculum.title'
13 db.alter_column(u'curriculum_curriculum', 'title', self.gf('django.db.models.fields.CharField')(max_length=1024))
15 def backwards(self, orm):
17 # Changing field 'Curriculum.title'
18 db.alter_column(u'curriculum_curriculum', 'title', self.gf('django.db.models.fields.CharField')(max_length=255))
21 u'curriculum.competence': {
22 'Meta': {'ordering': "['section', 'order']", 'object_name': 'Competence'},
23 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
24 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
25 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
26 'order': ('django.db.models.fields.IntegerField', [], {}),
27 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Section']"}),
28 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
30 u'curriculum.competencelevel': {
31 'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
32 'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Competence']"}),
33 'description_en': ('django.db.models.fields.TextField', [], {'default': "''"}),
34 'description_pl': ('django.db.models.fields.TextField', [], {'default': "''"}),
35 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"})
38 u'curriculum.curriculum': {
39 'Meta': {'ordering': "['identifier']", 'object_name': 'Curriculum'},
40 'course': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumCourse']"}),
41 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 'identifier': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}),
43 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumLevel']"}),
44 'title': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
45 'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
47 u'curriculum.curriculumcourse': {
48 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
49 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
50 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
52 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
54 u'curriculum.curriculumlevel': {
55 'Meta': {'object_name': 'CurriculumLevel'},
56 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57 'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
59 u'curriculum.level': {
60 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
61 'group_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
62 'group_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
63 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64 'meta_name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
65 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
66 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
67 'order': ('django.db.models.fields.IntegerField', [], {}),
68 'package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
69 'slug': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
70 'student_package': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
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']