From 98c04983602974c125ea5ae1944c88eb9569569d Mon Sep 17 00:00:00 2001 From: "William (Lindy) Lindstrom" Date: Thu, 5 Oct 2023 23:33:48 +0100 Subject: [PATCH] get_facility_context_data needs the target to resolve it via Swifts resolver --- tom_observations/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tom_observations/views.py b/tom_observations/views.py index 13006602d..99edb7aff 100644 --- a/tom_observations/views.py +++ b/tom_observations/views.py @@ -223,7 +223,7 @@ def get_context_data(self, **kwargs): # allow the Facility class to add data to the context facility_class = self.get_facility_class() - facility_context = facility_class().get_facility_context_data() + facility_context = facility_class().get_facility_context_data(target=target) context.update(facility_context) return context