Skip to content

Commit

Permalink
Merge 252d659 into 7594ae3
Browse files Browse the repository at this point in the history
  • Loading branch information
bdmbdsm committed Feb 4, 2019
2 parents 7594ae3 + 252d659 commit 26bc27d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openregistry/assets/basic/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from schematics.types import StringType, ValidationError
from schematics.types import StringType, ValidationError, MD5Type
from schematics.types.compound import ModelType, ListType
from zope.interface import implementer

Expand All @@ -18,6 +18,7 @@ class Asset(BaseAsset):
_internal_type = 'basic'
assetType = StringType(default="basic")
additionalClassifications = ListType(ModelType(AssetAdditionalClassification), default=list())
relatedLot = MD5Type(serialize_when_none=False)

def validate_relatedLot(self, data, lot):
if data['status'] == 'active' and not lot:
Expand Down

0 comments on commit 26bc27d

Please sign in to comment.