This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Description
Sentry Issue: VIAL-BR
AssertionError:
(3 additional frame(s) were not displayed)
...
File "api/utils.py", line 93, in replacement_view_function
response = view_fn(request, *args, **kwargs)
File "django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "api/export_mapbox.py", line 189, in export_mapbox
_mapbox_geojson(location, expansion), option=orjson.OPT_APPEND_NEWLINE
File "api/export_mapbox.py", line 82, in _mapbox_geojson
"appointment_details": report.full_appointment_details(location),
File "core/models.py", line 1127, in full_appointment_details
assert location.id == self.location_id