|
14 | 14 | from schematics.models import Model as SchematicsModel
|
15 | 15 | from schematics.models import ModelMeta
|
16 | 16 | from schematics.transforms import whitelist, blacklist, export_loop, convert
|
17 |
| -from schematics.types import (StringType, FloatType, URLType, IntType, |
18 |
| - BooleanType, BaseType, EmailType, MD5Type, DecimalType as BaseDecimalType) |
| 17 | +from schematics.types import (StringType, FloatType, URLType, BooleanType, |
| 18 | + BaseType, EmailType, MD5Type, DecimalType as BaseDecimalType) |
19 | 19 | from schematics.types.compound import (ModelType, DictType,
|
20 | 20 | ListType as BaseListType)
|
21 | 21 | from schematics.types.serializable import serializable
|
@@ -543,7 +543,7 @@ class Item(Model):
|
543 | 543 | classification = ModelType(CPVClassification)
|
544 | 544 | additionalClassifications = ListType(ModelType(AdditionalClassification), default=list())
|
545 | 545 | unit = ModelType(Unit) # Description of the unit which the good comes in e.g. hours, kilograms
|
546 |
| - quantity = IntType() # The number of units required |
| 546 | + quantity = FloatType() # The number of units required |
547 | 547 | deliveryDate = ModelType(Period)
|
548 | 548 | deliveryAddress = ModelType(Address)
|
549 | 549 | deliveryLocation = ModelType(Location)
|
|
0 commit comments