Add CorpContact.ext_id
This commit is contained in:
parent
bca01d6380
commit
98584f7208
2 changed files with 20 additions and 0 deletions
19
stages/migrations/0002_corpcontact_ext_id.py
Normal file
19
stages/migrations/0002_corpcontact_ext_id.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stages', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='corpcontact',
|
||||
name='ext_id',
|
||||
field=models.IntegerField(verbose_name='ID externe', blank=True, null=True),
|
||||
),
|
||||
]
|
||||
|
|
@ -133,6 +133,7 @@ class Corporation(models.Model):
|
|||
|
||||
class CorpContact(models.Model):
|
||||
corporation = models.ForeignKey(Corporation, verbose_name='Institution')
|
||||
ext_id = models.IntegerField(null=True, blank=True, verbose_name='ID externe')
|
||||
is_main = models.BooleanField(default=False, verbose_name='Contact principal')
|
||||
always_cc = models.BooleanField(default=False, verbose_name='Toujours en copie')
|
||||
title = models.CharField(max_length=40, blank=True, verbose_name='Civilité')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue