Ajout permis_sejour et date_validite pour contacts
This commit is contained in:
parent
63be646539
commit
2442cb1816
3 changed files with 24 additions and 0 deletions
|
|
@ -245,6 +245,7 @@ class CorpContactAdmin(admin.ModelAdmin):
|
|||
fields = (('civility', 'last_name', 'first_name'),
|
||||
('street', 'pcode', 'city'),
|
||||
('birth_date', 'nation'),
|
||||
('permis_sejour', 'date_validite'),
|
||||
('corporation',),
|
||||
('sections', 'is_main', 'always_cc', 'archived'),
|
||||
('role', 'ext_id'), ('tel', 'email'), ('avs',),
|
||||
|
|
|
|||
21
stages/migrations/0035_contact_permis_sejour.py
Normal file
21
stages/migrations/0035_contact_permis_sejour.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stages', '0034_add_instructor2'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='corpcontact',
|
||||
name='date_validite',
|
||||
field=models.DateField(blank=True, null=True, verbose_name='Date de validité'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='corpcontact',
|
||||
name='permis_sejour',
|
||||
field=models.CharField(blank=True, max_length=15, verbose_name='Permis de séjour'),
|
||||
),
|
||||
]
|
||||
|
|
@ -494,6 +494,8 @@ class CorpContact(models.Model):
|
|||
archived = models.BooleanField(default=False, verbose_name='Archivé')
|
||||
sections = models.ManyToManyField(Section, blank=True)
|
||||
|
||||
permis_sejour = models.CharField("Permis de séjour", max_length=15, blank=True)
|
||||
date_validite = models.DateField("Date de validité", blank=True, null=True)
|
||||
avs = models.CharField('No AVS', max_length=20, blank=True)
|
||||
bank = models.CharField('Banque (nom et ville)', max_length=200, blank=True)
|
||||
clearing = models.CharField('No clearing', max_length=5, blank=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue