fix locationredirect in check_location

This commit is contained in:
Laura Klünder 2024-12-20 20:41:49 +01:00
parent 34b5ad58bf
commit 92fd06031c

View file

@ -61,7 +61,7 @@ def check_location(location_slug: Optional[str], request) -> Optional[Location]:
return None
if isinstance(location, LocationRedirect):
result = location.target
return location.target
if location is None:
return None