Commit a3d994fe authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

fix: fix rSEDALegalStatus reledit value (related to #37)

--HG--
branch : seda21
parent 29e1c147061c
Pipeline #90669 failed with stages
in 5 minutes and 20 seconds
......@@ -155,6 +155,17 @@ class BusinessValueEntityView(EntityView):
return value
class BusinessValueSEDALegalStatustEntityView(BusinessValueEntityView):
"""Specific business value view for SEDALegalStatus entity: display the concept's label as text.
"""
__select__ = is_instance('SEDALegalStatus')
def entity_value(self, entity):
if entity.seda_legal_status_to:
return entity.seda_legal_status_to[0].view(self.__regid__)
return super().entity_value(entity)
class BusinessValueConceptEntityView(BusinessValueEntityView):
"""Specific business value view for concept entity: simply display the concept's label as text.
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment