aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-03-02 15:30:08 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-03-02 15:30:08 +0000
commit08bb520766fb3fdd8b2ac25d2a065fc4d1a1e4a2 (patch)
tree78149615b0eb1f248444ec1b480492bb2b3977b5 /ctrack/caf/models.py
parentf51518a79f39651800daedf5857dbc59367fbeea (diff)
better backwards querying
Diffstat (limited to '')
-rw-r--r--ctrack/caf/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py
index 669fc27..59675e0 100644
--- a/ctrack/caf/models.py
+++ b/ctrack/caf/models.py
@@ -50,7 +50,7 @@ class EssentialService(models.Model):
organisation = models.ForeignKey(
Organisation, on_delete=models.SET(get_sentinel_org)
)
- caf = models.ForeignKey("CAF", on_delete=models.CASCADE, blank=True, null=True)
+ caf = models.ForeignKey("CAF", on_delete=models.CASCADE, blank=True, null=True, related_name="essential_services")
class Meta:
verbose_name = "Essential Service"