Student.mark_ep is choice-based
This commit is contained in:
parent
9f068644cb
commit
4de82b088d
2 changed files with 36 additions and 2 deletions
28
stages/migrations/0023_mark_ep_to_choices.py
Normal file
28
stages/migrations/0023_mark_ep_to_choices.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Generated by Django 2.2 on 2019-10-07 14:09
|
||||
|
||||
from django.db import migrations, models
|
||||
from stages.models import IMPUTATION_CHOICES
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stages', '0022_student_entretienprof_fields'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='student',
|
||||
name='mark_ep',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='student',
|
||||
name='mark_ep',
|
||||
field=models.CharField(blank=True, choices=[('non', 'Non acquis'), ('part', 'Partiellement acquis'), ('acq', 'Acquis')], default='', max_length=5, verbose_name='Note EP'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='course',
|
||||
name='imputation',
|
||||
field=models.CharField(choices=IMPUTATION_CHOICES, max_length=12, verbose_name='Imputation'),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue