Add login field to Student

This commit is contained in:
Claude Paroz 2018-07-04 16:26:38 +02:00
parent 4ca8f95326
commit 266885622c
3 changed files with 20 additions and 1 deletions

View file

@ -2,6 +2,8 @@ from django.db import migrations, models
import django.db.migrations.operations.special
import django.db.models.deletion
from stages.models import IMPUTATION_CHOICES
class Migration(migrations.Migration):
@ -71,7 +73,7 @@ class Migration(migrations.Migration):
('public', models.CharField(default='', max_length=200, verbose_name='Classe(s)')),
('subject', models.CharField(default='', max_length=100, verbose_name='Sujet')),
('period', models.IntegerField(default=0, verbose_name='Nb de périodes')),
('imputation', models.CharField(choices=[('ASAFE', 'ASAFE'), ('ASEFE', 'ASEFE'), ('ASSCFE', 'ASSCFE'), ('MP', 'MP'), ('EDEpe', 'EDEpe'), ('EDEps', 'EDEps'), ('EDE', 'EDE'), ('EDS', 'EDS'), ('CAS_FPP', 'CAS_FPP')], max_length=10, verbose_name='Imputation')),
('imputation', models.CharField(choices=IMPUTATION_CHOICES, max_length=10, verbose_name='Imputation')),
],
options={
'verbose_name_plural': 'Cours',

View file

@ -0,0 +1,16 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stages', '0016_populate_corp_district'),
]
operations = [
migrations.AddField(
model_name='student',
name='login_rpn',
field=models.CharField(blank=True, max_length=40),
),
]

View file

@ -255,6 +255,7 @@ class Student(models.Model):
tel = models.CharField(max_length=40, blank=True, verbose_name='Téléphone')
mobile = models.CharField(max_length=40, blank=True, verbose_name='Portable')
email = models.EmailField(verbose_name='Courriel', blank=True)
login_rpn = models.CharField(max_length=40, blank=True)
avs = models.CharField(max_length=20, blank=True, verbose_name='No AVS')
option_ase = models.ForeignKey(Option, null=True, blank=True, on_delete=models.SET_NULL)
dispense_ecg = models.BooleanField(default=False)