updade from Atlas repo

This commit is contained in:
Luciano Ramalho
2021-05-21 18:56:12 -03:00
parent c518bf851e
commit 8a330d822b
120 changed files with 2190 additions and 1184 deletions

View File

@@ -54,7 +54,7 @@ class Quantity:
msg = f'{self.storage_name} must be > 0'
raise ValueError(msg)
# no __get__ needed
# no __get__ needed # <4>
class LineItem:
weight = Quantity() # <5>

View File

@@ -32,5 +32,5 @@ class NonBlank(Validated):
value = value.strip()
if len(value) == 0:
raise ValueError(f'{name} cannot be blank')
return value # <8>
return value # <2>
# end::MODEL_V5_VALIDATED_SUB[]