forked from DGNum/gestioCOF
BDSProfile: add is_member & cotisation_type fields
This commit is contained in:
parent
4d5419fdbc
commit
8bae013152
2 changed files with 38 additions and 1 deletions
34
bds/migrations/0004_is_member_cotiz_type.py
Normal file
34
bds/migrations/0004_is_member_cotiz_type.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Generated by Django 2.2.8 on 2019-12-22 10:20
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("bds", "0003_staff_permission"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="bdsprofile",
|
||||
name="cotisation_type",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("ETU", "Étudiant"),
|
||||
("NOR", "Normalien"),
|
||||
("EXT", "Extérieur"),
|
||||
("ARC", "Archicube"),
|
||||
],
|
||||
default="Normalien",
|
||||
max_length=9,
|
||||
verbose_name="type de cotisation",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="bdsprofile",
|
||||
name="is_member",
|
||||
field=models.BooleanField(default=False, verbose_name="membre du BDS"),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue