some hotfixing so locations reports refer to can be deleted

This commit is contained in:
Laura Klünder 2019-12-27 14:18:13 +01:00
parent 407e3ba06b
commit dddd88d2cc
2 changed files with 3 additions and 1 deletions

View file

@ -70,6 +70,8 @@ class Report(models.Model):
@cached_property
def location_specific(self):
if self.location is None:
return None
return self.location.get_child()
@classmethod