From 4f1a392bca7272bfce50a02148610bda8a06225b Mon Sep 17 00:00:00 2001
From: Helge Jung <hej@c3pb.de>
Date: Mon, 25 Dec 2023 21:05:48 +0100
Subject: [PATCH] api/c3nav_export: use temporary location_data here, too

---
 src/api/views/maps.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/views/maps.py b/src/api/views/maps.py
index 2a7d70b34..030f68178 100644
--- a/src/api/views/maps.py
+++ b/src/api/views/maps.py
@@ -140,7 +140,7 @@ class C3NavExportView(ConferenceSlugMixin, APIView):
         exportable_states = [*Assembly.PLACED_STATES, Assembly.State.HIDDEN]
         qs = self.conference.assemblies.filter(state_assembly__in=exportable_states)
         if request.GET.get('all') != '1':
-            qs = qs.exclude(location_point=None, location_boundaries=None)
+            qs = qs.exclude(location_data__point=None, location_data__boundaries=None)
         for assembly in qs:  # type: Assembly
             loc_data = assembly.location_data or {}
             data.append(
-- 
GitLab