wcs: also get formdefs when getting categories (#8990)
This commit is contained in:
parent
7f0dd9f035
commit
d02d6ec080
|
@ -159,7 +159,12 @@ class WcsBlurpMixin(object):
|
|||
'default': {'title': wcs_site['title'], 'base_url': url}
|
||||
}
|
||||
|
||||
url += self.api_url + '?format=json'
|
||||
url += self.api_url
|
||||
if not '?' in url:
|
||||
url += '?'
|
||||
else:
|
||||
url += '&'
|
||||
url += 'format=json'
|
||||
if wcs_site.get('orig') and wcs_site.get('secret'):
|
||||
url += '&orig=%s' % wcs_site['orig']
|
||||
source['auth_mech'] = 'hmac-sha1'
|
||||
|
@ -294,7 +299,7 @@ class WcsFormsOfCategoryCell(WcsCommonCategoryCell, WcsBlurpMixin):
|
|||
|
||||
@register_cell_class
|
||||
class CategoriesCell(WcsDataBaseCell):
|
||||
api_url = 'categories'
|
||||
api_url = 'api/categories/?full=on'
|
||||
variable_name = 'form_categories'
|
||||
template_name = 'combo/wcs/form_categories.html'
|
||||
|
||||
|
|
Loading…
Reference in New Issue