File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
readthedocs/projects/views Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -168,10 +168,15 @@ def validate_primary_email(self, user):
168
168
)
169
169
170
170
def get_queryset (self ):
171
+ queryset = Project .objects .dashboard (self .request .user )
172
+ if settings .RTD_EXT_THEME_ENABLED :
173
+ return queryset
174
+ # The new dashboard uses django-filters, this is a manual filter for the
175
+ # old dashboard and it can be removed with the old dashboard.
171
176
sort = self .request .GET .get ("sort" )
172
177
if sort not in ["modified_date" , "-modified_date" , "slug" , "-slug" ]:
173
178
sort = "slug"
174
- return Project . objects . dashboard ( self . request . user ) .order_by (sort )
179
+ return queryset .order_by (sort )
175
180
176
181
def get (self , request , * args , ** kwargs ):
177
182
self .validate_primary_email (request .user )
You can’t perform that action at this time.
0 commit comments