family: always return a family to cell, even if empty or error
This commit is contained in:
parent
69e26427b4
commit
f4808f0a33
|
@ -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', []))
|
||||
|
|
Loading…
Reference in New Issue