2019-07-17 17:50:53 +02:00
|
|
|
# Generated by Django 2.2 on 2019-07-17 12:48
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
2019-07-18 15:43:03 +02:00
|
|
|
import bds.models
|
|
|
|
|
2019-07-17 17:50:53 +02:00
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="BDSProfile",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"phone",
|
|
|
|
models.CharField(
|
2019-10-06 19:03:19 +02:00
|
|
|
blank=True, max_length=20, verbose_name="téléphone"
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"occupation",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("EXT", "Extérieur"),
|
|
|
|
("1A", "1A"),
|
|
|
|
("2A", "2A"),
|
|
|
|
("3A", "3A"),
|
|
|
|
("4A", "4A"),
|
|
|
|
("MAG", "Magistérien"),
|
|
|
|
("ARC", "Archicube"),
|
|
|
|
("DOC", "Doctorant"),
|
|
|
|
("CST", "CST"),
|
|
|
|
("PER", "Personnel ENS"),
|
|
|
|
],
|
|
|
|
default="1A",
|
|
|
|
max_length=3,
|
2019-10-06 19:03:19 +02:00
|
|
|
verbose_name="occupation",
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"departement",
|
|
|
|
models.CharField(
|
2019-10-06 19:03:19 +02:00
|
|
|
blank=True, max_length=50, verbose_name="département"
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"birthdate",
|
|
|
|
models.DateField(
|
2019-10-06 19:03:19 +02:00
|
|
|
blank=True, null=True, verbose_name="date de naissance"
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"mails_bds",
|
|
|
|
models.BooleanField(
|
2019-10-06 19:03:19 +02:00
|
|
|
default=False, verbose_name="recevoir les mails du BDS"
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"is_buro",
|
|
|
|
models.BooleanField(
|
2019-10-06 19:03:19 +02:00
|
|
|
default=False, verbose_name="membre du Burô du BDS"
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"has_certificate",
|
|
|
|
models.BooleanField(
|
2019-10-06 19:03:19 +02:00
|
|
|
default=False, verbose_name="certificat médical"
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"certificate_file",
|
|
|
|
models.FileField(
|
|
|
|
blank=True,
|
|
|
|
upload_to=bds.models.BDSProfile.get_certificate_filename,
|
2019-10-06 19:03:19 +02:00
|
|
|
verbose_name="fichier de certificat médical",
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"ASPSL_number",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
max_length=50,
|
|
|
|
null=True,
|
2019-10-06 19:03:19 +02:00
|
|
|
verbose_name="numéro AS PSL",
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"FFSU_number",
|
|
|
|
models.CharField(
|
2019-10-06 19:03:19 +02:00
|
|
|
blank=True, max_length=50, null=True, verbose_name="numéro FFSU"
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"cotisation_period",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("ANN", "Année"),
|
|
|
|
("SE1", "Premier semestre"),
|
|
|
|
("SE2", "Deuxième semestre"),
|
|
|
|
("NO", "Aucune"),
|
|
|
|
],
|
|
|
|
default="NO",
|
|
|
|
max_length=3,
|
2019-10-06 19:03:19 +02:00
|
|
|
verbose_name="inscription",
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"registration_date",
|
|
|
|
models.DateField(
|
2019-10-06 19:03:19 +02:00
|
|
|
auto_now_add=True, verbose_name="date d'inscription"
|
2019-07-17 17:50:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"user",
|
|
|
|
models.OneToOneField(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="bds",
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
"verbose_name": "Profil BDS",
|
|
|
|
"verbose_name_plural": "Profils BDS",
|
|
|
|
},
|
|
|
|
)
|
|
|
|
]
|