Removed ext_id_old, unfilled anyway
This commit is contained in:
parent
3ae3820fc3
commit
8452575232
2 changed files with 19 additions and 2 deletions
19
stages/migrations/0020_remove_old_ext_id.py
Normal file
19
stages/migrations/0020_remove_old_ext_id.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stages', '0019_add_old_ext_id'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='corpcontact',
|
||||
name='ext_id_old',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='corporation',
|
||||
name='ext_id_old',
|
||||
),
|
||||
]
|
||||
|
|
@ -196,7 +196,6 @@ class Student(models.Model):
|
|||
|
||||
class Corporation(models.Model):
|
||||
ext_id = models.IntegerField(null=True, blank=True, verbose_name='ID externe')
|
||||
ext_id_old = models.IntegerField(null=True, blank=True, verbose_name='ID externe (ancien)')
|
||||
name = models.CharField(max_length=100, verbose_name='Nom', unique=True)
|
||||
short_name = models.CharField(max_length=40, blank=True, verbose_name='Nom court')
|
||||
district = models.CharField(max_length=20, blank=True, verbose_name='Canton')
|
||||
|
|
@ -224,7 +223,6 @@ class Corporation(models.Model):
|
|||
class CorpContact(models.Model):
|
||||
corporation = models.ForeignKey(Corporation, verbose_name='Institution', on_delete=models.CASCADE)
|
||||
ext_id = models.IntegerField(null=True, blank=True, verbose_name='ID externe')
|
||||
ext_id_old = models.IntegerField(null=True, blank=True, verbose_name='ID externe (ancien)')
|
||||
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