diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-03-02 15:30:08 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-03-02 15:30:08 +0000 |
commit | 08bb520766fb3fdd8b2ac25d2a065fc4d1a1e4a2 (patch) | |
tree | 78149615b0eb1f248444ec1b480492bb2b3977b5 /ctrack/caf/models.py | |
parent | f51518a79f39651800daedf5857dbc59367fbeea (diff) |
better backwards querying
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/models.py | 2 |
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" |