diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-21 18:06:48 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-21 18:06:48 +0000 |
commit | 99ac4056b828d16babbe2dc93695a46cb60e28a4 (patch) | |
tree | 446f78bb8ceef18765b705861493b270e6fc084b /ctrack/organisations/models.py | |
parent | 5f06e5559c00db759574467c3884a4645346b224 (diff) |
fixed blank= value on model field
Diffstat (limited to 'ctrack/organisations/models.py')
-rw-r--r-- | ctrack/organisations/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index 6bd1249..afc3808 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -23,7 +23,7 @@ class Address(models.Model): organisation = models.ForeignKey( Organisation, related_name="addresses", on_delete=models.CASCADE, blank=False ) - type = models.ForeignKey(AddressType, on_delete=models.CASCADE, default=1) + type = models.ForeignKey(AddressType, on_delete=models.CASCADE, blank=False) line1 = models.CharField(max_length=255) line2 = models.CharField(max_length=255) line3 = models.CharField(max_length=255) |