From dacd5415aebad802bc7a3fe402522607f4f7ca66 Mon Sep 17 00:00:00 2001 From: Yurii Purdenko Date: Mon, 2 Dec 2024 16:11:07 +0100 Subject: [PATCH] fix --- bhtom2/bhtom_common/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bhtom2/bhtom_common/serializers.py b/bhtom2/bhtom_common/serializers.py index c5aec21..236abb5 100644 --- a/bhtom2/bhtom_common/serializers.py +++ b/bhtom2/bhtom_common/serializers.py @@ -70,7 +70,7 @@ def get_calibration_data(self, obj): 'id': cal.id or "", 'time_photometry': cal.modified or "", 'mjd': cal.mjd or "", - 'calib_survey_filter': f"{cal.use_catalog.survey or ''}/{cal.use_catalog.filters or ''}", + 'calib_survey_filter': f"{cal.use_catalog.survey or ''}/{cal.use_catalog.filters or ''}" if cal.use_catalog else "", 'standardised_to': f"{cal.survey or ''}/{cal.best_filter or ''}" if cal.survey and cal.best_filter else "", 'magnitude': cal.mag or "", 'zp': cal.zeropoint or "",