Skip to content

Commit e6cae86

Browse files
authored
Merge pull request #6880 from readthedocs/allow-override-view
Allow to override project detail view
2 parents 1720d2b + 9341529 commit e6cae86

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

readthedocs/projects/views/public.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def project_redirect(request, invalid_project_slug):
8181
))
8282

8383

84-
class ProjectDetailView(
84+
class ProjectDetailViewBase(
8585
ProjectRelationListMixin,
8686
BuildTriggerMixin,
8787
ProjectOnboardMixin,
@@ -124,6 +124,11 @@ def get_context_data(self, **kwargs):
124124
return context
125125

126126

127+
class ProjectDetailView(SettingsOverrideObject):
128+
129+
_default_class = ProjectDetailViewBase
130+
131+
127132
class ProjectBadgeView(View):
128133

129134
"""

0 commit comments

Comments
 (0)