We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d35b82 commit 4924598Copy full SHA for 4924598
readthedocs/proxito/views/decorators.py
@@ -65,7 +65,7 @@ def inner_view( # noqa
65
if project is None:
66
# Get a slug from the request if it can't be found in the URL
67
if not project_slug:
68
- project_slug = request.host_project_slug
+ project_slug = getattr(request, 'host_project_slug', None)
69
log.debug(
70
'Inserting project slug from request slug=[%s]',
71
project_slug
0 commit comments