feat(people): Add nationality and residence fields

See #1
This commit is contained in:
James Graham
2020-02-25 08:38:30 +00:00
parent abcfd67f77
commit 9210636475
6 changed files with 80 additions and 7 deletions

View File

@@ -6,6 +6,8 @@ from django.db import models
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from django_countries.fields import CountryField
from backports.db.models.enums import TextChoices
@@ -70,6 +72,10 @@ class Person(models.Model):
age_group = models.CharField(max_length=5,
choices=AgeGroupChoices.choices,
blank=True, null=False)
nationality = CountryField(blank=True, null=True)
country_of_residence = CountryField(blank=True, null=True)
@property
def relationships(self):