2017-02-10 20:10:45 +01:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django . db import migrations , models
2017-02-11 17:13:48 +01:00
import bds . models
2017-02-10 20:10:45 +01:00
class Migration ( migrations . Migration ) :
dependencies = [
( ' gestion ' , ' 0001_initial ' ) ,
]
operations = [
migrations . CreateModel (
name = ' BdsProfile ' ,
fields = [
2017-02-11 17:13:48 +01:00
( ' id ' , models . AutoField ( serialize = False , auto_created = True , verbose_name = ' ID ' , primary_key = True ) ) ,
( ' ASPSL_number ' , models . CharField ( null = True , blank = True , verbose_name = ' Numéro AS PSL ' , max_length = 50 ) ) ,
( ' FFSU_number ' , models . CharField ( null = True , blank = True , verbose_name = ' Numéro FFSU ' , max_length = 50 ) ) ,
( ' have_certificate ' , models . BooleanField ( verbose_name = ' Certificat médical ' , default = False ) ) ,
( ' certificate_file ' , models . FileField ( blank = True , upload_to = bds . models . BdsProfile . issue_file_name , verbose_name = ' Fichier de certificat médical ' ) ) ,
( ' cotisation_period ' , models . CharField ( choices = [ ( ' ANN ' , ' Année ' ) , ( ' SE1 ' , ' Premier semestre ' ) , ( ' SE2 ' , ' Deuxième semestre ' ) ] , verbose_name = ' Inscription ' , max_length = 3 , default = ' ANN ' ) ) ,
( ' registration_date ' , models . DateField ( verbose_name = " Date d ' inscription " , auto_now_add = True ) ) ,
( ' payment_method ' , models . CharField ( choices = [ ( ' CASH ' , ' Liquide ' ) , ( ' BANK ' , ' Transfer bancaire ' ) , ( ' CHEQUE ' , ' Cheque ' ) , ( ' OTHER ' , ' Autre ' ) ] , verbose_name = ' Methode de paiement ' , max_length = 6 , default = ' CASH ' ) ) ,
2017-02-22 19:28:34 +01:00
( ' profile ' , models . OneToOneField (
related_name = ' bds ' ,
on_delete = models . CASCADE ,
to = ' gestion.Profile ' ) ) ,
2017-02-10 20:10:45 +01:00
] ,
) ,
]