1 |
# Generated by Django 2.0b1 on 2018-01-24 00:49
|
2 |
|
3 |
import courses.models |
4 |
from django.conf import settings |
5 |
from django.db import migrations, models |
6 |
|
7 |
|
8 |
class Migration(migrations.Migration): |
9 |
|
10 |
dependencies = [ |
11 |
('courses', '0002_auto_20171121_2018'), |
12 |
] |
13 |
|
14 |
operations = [ |
15 |
migrations.CreateModel( |
16 |
name='CourseItem', |
17 |
fields=[ |
18 |
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
19 |
('file', models.FileField(help_text='The file you wish to upload.', upload_to=courses.models.item_upload_directory)), |
20 |
('timestamp', models.DateTimeField(auto_now_add=True)), |
21 |
('note', models.TextField(blank=True, help_text='If you want to state some additional information about this upload, state it here.')), |
22 |
], |
23 |
), |
24 |
migrations.CreateModel( |
25 |
name='CourseProgramme', |
26 |
fields=[ |
27 |
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
28 |
('programme_type', models.CharField(choices=[('C', 'Compulsory'), ('O', 'Optional')], help_text='Type of this course for this study.', max_length=1)), |
29 |
('study_hours', models.PositiveSmallIntegerField(help_text='The required amount of hours to study this course.')), |
30 |
('ECTS', models.PositiveSmallIntegerField(help_text='The amount of ECTS points attached to this course.')), |
31 |
('semester', models.PositiveSmallIntegerField(choices=[(1, 'First semester'), (2, 'Second semester'), (3, 'Full year course'), (4, 'Taught in first quarter'), (5, 'Taught in second quarter'), (6, 'Taught in third quarter'), (7, 'Taught in fourth quarter')], help_text='The period in which this course is being taught in this study.')), |
32 |
('year', models.PositiveSmallIntegerField(help_text='The year in which this course is taught for this study.')), |
33 |
('second_chance', models.BooleanField(default=True, help_text='Defines if a second chance exam is planned for this course.')), |
34 |
('tolerable', models.BooleanField(default=True, help_text='Defines if a failed result can be tolerated.')), |
35 |
('scoring', models.CharField(choices=[('N', 'Numerical'), ('FP', 'Fail/Pass')], default='N', help_text='How the obtained score for this course is given.', max_length=2)), |
36 |
], |
37 |
), |
38 |
migrations.CreateModel( |
39 |
name='Group', |
40 |
fields=[ |
41 |
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
42 |
], |
43 |
), |
44 |
migrations.RenameModel( |
45 |
old_name='Prerequisites', |
46 |
new_name='Prerequisite', |
47 |
), |
48 |
migrations.RemoveField( |
49 |
model_name='programmeinformation', |
50 |
name='course', |
51 |
), |
52 |
migrations.RemoveField( |
53 |
model_name='programmeinformation', |
54 |
name='study', |
55 |
), |
56 |
migrations.RemoveField( |
57 |
model_name='programmeinformation', |
58 |
name='study_programme', |
59 |
), |
60 |
migrations.AddField( |
61 |
model_name='assignment', |
62 |
name='title', |
63 |
field=models.CharField(default='null', help_text='The title of this assignment.', max_length=32), |
64 |
preserve_default=False, |
65 |
), |
66 |
migrations.AddField( |
67 |
model_name='course', |
68 |
name='color', |
69 |
field=models.CharField(default='E73B2B', help_text='The color for this course. Must be an hexadecimal code.', max_length=6), |
70 |
), |
71 |
migrations.AddField( |
72 |
model_name='course', |
73 |
name='slug_name', |
74 |
field=models.SlugField(allow_unicode=True, default='empty_slug', help_text="A so-called 'slug name' for this course.", unique=True), |
75 |
preserve_default=False, |
76 |
), |
77 |
migrations.AlterField( |
78 |
model_name='course', |
79 |
name='educating_team', |
80 |
field=models.ManyToManyField(help_text='The remaining team members of this course.', limit_choices_to={'is_staff': True}, related_name='educating_team', to=settings.AUTH_USER_MODEL), |
81 |
), |
82 |
migrations.AlterField( |
83 |
model_name='study', |
84 |
name='degree_type', |
85 |
field=models.CharField(choices=[('BSc', 'Bachelor of Science'), ('MSc', 'Master of Science'), ('LL.B', 'Bachelor of Laws'), ('LL.M', 'Master of Laws'), ('ir.', 'Engineer'), ('ing.', 'Technological Engineer'), ('BA', 'Bachelor of Arts'), ('MA', 'Master of Arts')], help_text='The type of degree one obtains upon passing this study.', max_length=64), |
86 |
), |
87 |
] |
88 |
|