diff --git a/stages/migrations/0002_corpcontact_ext_id.py b/stages/migrations/0002_corpcontact_ext_id.py new file mode 100644 index 0000000..719af0d --- /dev/null +++ b/stages/migrations/0002_corpcontact_ext_id.py @@ -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), + ), + ] diff --git a/stages/models.py b/stages/models.py index 9a64286..6fdd82c 100644 --- a/stages/models.py +++ b/stages/models.py @@ -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é')