Adding error aka list checking to metadata models
@@ -526,6 +526,9 @@ class Description(AbstractMetaDataElement):
element.metadata.is_dirty = True
element.metadata.save()
+ if(type(kwargs['abstract']) == list):
+ kwargs['abstract'] = kwargs['abstract'][0].encode('utf-8')
+
super(Description, cls).update(element_id, **kwargs)
@classmethod
@@ -558,6 +561,9 @@ class Title(AbstractMetaDataElement):
element.metadata.is_dirty = True
element.metadata.save()
+ if(type(kwargs['value']) == list):
+ kwargs['value'] = kwargs['value'][0].encode('utf-8')
+
super(Title, cls).update(element_id, **kwargs)
@classmethod
