Skip to content
Snippets Groups Projects
Commit df6d3f79 authored by Tore.Brede's avatar Tore.Brede
Browse files

Merge branch 'GREG-21_add_foedselsnummer' into 'master'

GREG-21: Add foedselsnummer as type

See merge request !25
parents e1363c26 8d11e0f0
No related branches found
No related tags found
1 merge request!25GREG-21: Add foedselsnummer as type
Pipeline #90547 passed
# Generated by Django 3.2.5 on 2021-08-19 12:47
# Generated by Django 3.2.5 on 2021-08-20 08:20
import datetime
import dirtyfields.dirtyfields
......@@ -165,7 +165,7 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('type', models.CharField(choices=[('ID_PORTEN', 'Id Porten'), ('FEIDE_ID', 'Feide Id'), ('PASSPORT', 'Passport'), ('DRIVERS_LICENSE', 'Drivers License'), ('NATIONAL_ID_CARD', 'National Id Card'), ('OTHER', 'Other')], max_length=16)),
('type', models.CharField(choices=[('ID_PORTEN', 'Id Porten'), ('FEIDE_ID', 'Feide Id'), ('PASSPORT', 'Passport'), ('DRIVERS_LICENSE', 'Drivers License'), ('NATIONAL_ID_CARD', 'National Id Card'), ('NATIONAL_ID_NUMBER', 'National Id Number'), ('OTHER', 'Other')], max_length=18)),
('source', models.CharField(max_length=256)),
('value', models.CharField(max_length=256)),
('verified', models.CharField(blank=True, choices=[('AUTOMATIC', 'Automatic'), ('MANUAL', 'Manual')], max_length=9)),
......
......@@ -145,6 +145,8 @@ class PersonIdentity(BaseModel):
PASSPORT = "PASSPORT"
DRIVERS_LICENSE = "DRIVERS_LICENSE"
NATIONAL_ID_CARD = "NATIONAL_ID_CARD"
# In Norway this is the foedselsnummer
NATIONAL_ID_NUMBER = "NATIONAL_ID_NUMBER"
# Sponsor writes what is used in the value column
OTHER = "OTHER"
......@@ -155,7 +157,7 @@ class PersonIdentity(BaseModel):
person = models.ForeignKey(
"Person", on_delete=models.CASCADE, related_name="person"
)
type = models.CharField(max_length=16, choices=IdentityType.choices)
type = models.CharField(max_length=18, choices=IdentityType.choices)
source = models.CharField(max_length=256)
value = models.CharField(max_length=256)
verified = models.CharField(max_length=9, choices=Verified.choices, blank=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment