pedagogy: simplify and implement department system according to old database model

This commit is contained in:
2019-06-18 10:56:05 +02:00
parent d44fa73b2a
commit 358a625cc4
8 changed files with 35 additions and 94 deletions

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-17 16:08
# Generated by Django 1.11.20 on 2019-06-18 08:52
from __future__ import unicode_literals
from django.conf import settings
@ -15,34 +15,6 @@ class Migration(migrations.Migration):
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
operations = [
migrations.CreateModel(
name="EducationDepartment",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
)
],
),
migrations.CreateModel(
name="StudyField",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
)
],
),
migrations.CreateModel(
name="UV",
fields=[
@ -123,6 +95,29 @@ class Migration(migrations.Migration):
verbose_name="credits",
),
),
(
"department",
models.CharField(
choices=[
("TC", "TC"),
("IMSI", "IMSI"),
("IMAP", "IMAP"),
("INFO", "INFO"),
("GI", "GI"),
("E", "E"),
("EE", "EE"),
("GESC", "GESC"),
("GMC", "GMC"),
("MC", "MC"),
("EDIM", "EDIM"),
("HUMA", "Humanities"),
("NA", "N/A"),
],
default="NA",
max_length=10,
verbose_name="departmenmt",
),
),
("title", models.CharField(max_length=300, verbose_name="title")),
(
"manager",