family: always return a family to cell, even if empty or error

This commit is contained in:
Thomas NOËL 2015-11-12 00:21:28 +01:00
parent 69e26427b4
commit f4808f0a33
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class FamilyInfosCell(CellBase):
settings.FAMILY_SERVICE.get('signature_key'))
ws_family_data = requests.get(ws_family_url).json()
if ws_family_data.get('err') or not ws_family_data.get('data'):
return {}
return {'family': ws_family_data}
# get formdefs and formdata from wcs
def add_forms(obj, formdefs, forms, drafts, id_varname):
keywords_set = set(obj.get('keywords', []))