diff options
Diffstat (limited to 'ctrack/organisations/models.py')
-rw-r--r-- | ctrack/organisations/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index 3ef794c..cf8e7de 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -5,7 +5,12 @@ from django.urls import reverse from slugify import slugify +class AddressType(models.Model): + descriptor = models.CharField(max_length=50) + + class Address(models.Model): + type = models.ForeignKey(AddressType, on_delete=models.CASCADE, default=1) line1 = models.CharField(max_length=255) line2 = models.CharField(max_length=255) line3 = models.CharField(max_length=255) |