wcs: be sure to reset context['more_forms'] when rendering cell (#13390)
This commit is contained in:
parent
760c7a2487
commit
f7678c42d8
|
@ -326,6 +326,7 @@ class WcsFormsOfCategoryCell(WcsCommonCategoryCell, WcsBlurpMixin):
|
|||
# default sort is alphabetical, it's always done as this will serve as
|
||||
# secondary sort key (thanks to Python stable sort)
|
||||
context['forms'] = sorted(context['forms'], key=lambda x: x.get('title'))
|
||||
context['more_forms'] = []
|
||||
|
||||
if self.ordering == 'popularity':
|
||||
context['forms'] = sorted(context['forms'], key=lambda x: x.get('count'), reverse=True)
|
||||
|
|
Loading…
Reference in New Issue