Add fields (ext_id, sector, short_name) to Corporation
This commit is contained in:
parent
98584f7208
commit
5cf2e5d8d5
4 changed files with 39 additions and 3 deletions
29
stages/migrations/0003_add_corp_fields.py
Normal file
29
stages/migrations/0003_add_corp_fields.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stages', '0002_corpcontact_ext_id'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='corporation',
|
||||
name='ext_id',
|
||||
field=models.IntegerField(verbose_name='ID externe', null=True, blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='corporation',
|
||||
name='sector',
|
||||
field=models.CharField(max_length=40, verbose_name='Secteur', blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='corporation',
|
||||
name='short_name',
|
||||
field=models.CharField(max_length=40, verbose_name='Nom court', blank=True),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue