wcs: get list of forms as a list
This commit is contained in:
parent
de4b840a59
commit
dfaea1d163
|
@ -266,7 +266,7 @@ class WcsFormsOfCategoryCell(WcsCommonCategoryCell, WcsBlurpMixin):
|
|||
context['slug'] = self.category_reference.split(':')[-1]
|
||||
context['title'] = self.cached_title
|
||||
context['description'] = self.cached_description
|
||||
context['forms'] = context['forms'][self.wcs_site]['data']
|
||||
context['forms'] = list(context['forms'][self.wcs_site]['data'])
|
||||
if self.ordering == 'alpha':
|
||||
context['forms'] = sorted(context['forms'], lambda x, y: cmp(x.get('title'), y.get('title')))
|
||||
elif self.ordering == 'popularity':
|
||||
|
|
Loading…
Reference in New Issue