From d5217c14f359d3cceb97fbd37be5157fd586dd91 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Wed, 24 Jan 2018 10:58:47 -0500 Subject: [PATCH] Fix broken new event form --- events/models/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/models/events.py b/events/models/events.py index 584bfb4..3316f82 100644 --- a/events/models/events.py +++ b/events/models/events.py @@ -107,7 +107,7 @@ def update_event_searchable(event): searchable.longitude = event.place.longitude or None searchable.latitude = event.place.latitude else: - searchable.location_name = team.location_name + searchable.location_name = event.team.location_name searchable.longitude = None searchable.latitude = None searchable.save()