return a question mark as category if formdef is no longer available (#13956)
This commit is contained in:
parent
27dc0bd814
commit
cf0ae530a4
|
@ -52,7 +52,10 @@ class Association(models.Model):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def formdef_category(self):
|
def formdef_category(self):
|
||||||
return get_wcs_formdef_details(self.formdef_reference).get('category')
|
try:
|
||||||
|
return get_wcs_formdef_details(self.formdef_reference).get('category')
|
||||||
|
except AttributeError:
|
||||||
|
return '?'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def formdata_url(self):
|
def formdata_url(self):
|
||||||
|
|
Loading…
Reference in New Issue