fix strict mode
This commit is contained in:
parent
a7f9b8b725
commit
0d957ecc4a
|
@ -740,7 +740,7 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
uuid = Column(UUID(as_uuid=True), unique=True)
|
uuid = Column(UUID(as_uuid=True), unique=True)
|
||||||
version = Column(StrictVersionType(STR_SM_SIZE), nullable=False)
|
version = Column(Unicode(STR_SM_SIZE), nullable=False)
|
||||||
software = Column(DBEnum(SnapshotSoftware), nullable=False)
|
software = Column(DBEnum(SnapshotSoftware), nullable=False)
|
||||||
elapsed = Column(Interval)
|
elapsed = Column(Interval)
|
||||||
elapsed.comment = """For Snapshots made with Workbench, the total amount
|
elapsed.comment = """For Snapshots made with Workbench, the total amount
|
||||||
|
|
|
@ -442,7 +442,7 @@ class Snapshot(ActionWithOneDevice):
|
||||||
required=True,
|
required=True,
|
||||||
description='The software that generated this Snapshot.',
|
description='The software that generated this Snapshot.',
|
||||||
)
|
)
|
||||||
version = Version(required=True, description='The version of the software.')
|
version = String(required=True, description='The version of the software.')
|
||||||
actions = NestedOn(Action, many=True, dump_only=True)
|
actions = NestedOn(Action, many=True, dump_only=True)
|
||||||
elapsed = TimeDelta(precision=TimeDelta.SECONDS)
|
elapsed = TimeDelta(precision=TimeDelta.SECONDS)
|
||||||
components = NestedOn(
|
components = NestedOn(
|
||||||
|
|
Reference in New Issue