From 0bfe3454fde753425d37246b73b3eda1b9a756b9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 21 Jan 2020 10:12:56 +0000 Subject: fixed failing test - first use of faker object --- ctrack/organisations/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ctrack/organisations/models.py') 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()}) -- cgit v1.2.3