diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-21 10:12:56 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-21 10:12:56 +0000 |
commit | 0bfe3454fde753425d37246b73b3eda1b9a756b9 (patch) | |
tree | 05d1d6ff7010b01daca45953e82d8f9d65d56571 /ctrack/organisations/models.py | |
parent | 6d6b1cd9c405c54cc78dc2b7cbe217ba526a9829 (diff) |
fixed failing test - first use of faker object
Diffstat (limited to 'ctrack/organisations/models.py')
-rw-r--r-- | ctrack/organisations/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index 01127cc..3ef794c 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -18,6 +18,7 @@ class Address(models.Model): class Organisation(models.Model): name = models.CharField(max_length=255, blank=False) + address = models.ForeignKey(Address, on_delete=models.CASCADE, blank=True, null=True) def get_absolute_url(self): return reverse("organisations:detail", kwargs={"name": self.slugify_name()}) |