fix locationredirect in check_location
This commit is contained in:
parent
34b5ad58bf
commit
92fd06031c
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ def check_location(location_slug: Optional[str], request) -> Optional[Location]:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if isinstance(location, LocationRedirect):
|
if isinstance(location, LocationRedirect):
|
||||||
result = location.target
|
return location.target
|
||||||
if location is None:
|
if location is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue