diff --git a/src/linkahead/common/models.py b/src/linkahead/common/models.py index 80e4273295dcfbebc093934c8ddfbcf3d78ecb4c..ea537ffe8c44a7a7fb79c2d4080b63f9b3da2284 100644 --- a/src/linkahead/common/models.py +++ b/src/linkahead/common/models.py @@ -81,7 +81,7 @@ NONE = "NONE" SPECIAL_ATTRIBUTES = ["name", "role", "datatype", "description", - "id", "path", "checksum", "size"] + "id", "path", "checksum", "size", "value"] class Entity: @@ -154,7 +154,7 @@ class Entity: # Copy special attributes: # TODO: this might rise an exception when copying # special file attributes like checksum and size. - for attribute in SPECIAL_ATTRIBUTES + ["value"]: + for attribute in SPECIAL_ATTRIBUTES: val = getattr(self, attribute) if val is not None: setattr(new, attribute, val)