File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 14
14
DetailView ,
15
15
FormView ,
16
16
ListView ,
17
- UpdateView
17
+ UpdateView ,
18
18
)
19
19
20
20
from readthedocs .core .forms import (
24
24
)
25
25
from readthedocs .core .mixins import PrivateViewMixin
26
26
from readthedocs .core .models import UserProfile
27
+ from readthedocs .core .utils .extend import SettingsOverrideObject
27
28
28
29
29
30
class ProfileEdit (PrivateViewMixin , UpdateView ):
@@ -67,7 +68,7 @@ def get_success_url(self):
67
68
return reverse ('homepage' )
68
69
69
70
70
- class ProfileDetail (DetailView ):
71
+ class ProfileDetailBase (DetailView ):
71
72
72
73
model = User
73
74
template_name = 'profiles/public/profile_detail.html'
@@ -79,6 +80,11 @@ def get_context_data(self, **kwargs):
79
80
return context
80
81
81
82
83
+ class ProfileDetail (SettingsOverrideObject ):
84
+
85
+ _default_class = ProfileDetailBase
86
+
87
+
82
88
class AccountAdvertisingEdit (PrivateViewMixin , SuccessMessageMixin , UpdateView ):
83
89
84
90
model = UserProfile
You can’t perform that action at this time.
0 commit comments