Adds deposit field in Computer
This commit is contained in:
parent
d1cff3e44e
commit
225e018cdc
|
@ -381,7 +381,7 @@ class Computer(Device):
|
||||||
|
|
||||||
It is a subset of the Linux definition of DMI / DMI decode.
|
It is a subset of the Linux definition of DMI / DMI decode.
|
||||||
"""
|
"""
|
||||||
deposit = Column(Integer, check_range('deposit',min=0,max=100), default=0)
|
deposit = Column(Integer, check_range('deposit', min=0, max=100), default=0)
|
||||||
owner_address = db.Column(CIText(),
|
owner_address = db.Column(CIText(),
|
||||||
db.ForeignKey(User.ethereum_address),
|
db.ForeignKey(User.ethereum_address),
|
||||||
nullable=False,
|
nullable=False,
|
||||||
|
|
|
@ -155,8 +155,8 @@ class Computer(DisplayMixin, Device):
|
||||||
self.owner_address = ... # type: UUID
|
self.owner_address = ... # type: UUID
|
||||||
self.transfer_state = ...
|
self.transfer_state = ...
|
||||||
self.receiver_address = ... # type: str
|
self.receiver_address = ... # type: str
|
||||||
self.deliverynote_address = ... # type: str
|
self.deliverynote_address = ... # type: str
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def actions(self) -> List:
|
def actions(self) -> List:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -129,7 +129,7 @@ class Computer(Device):
|
||||||
transfer_state = EnumField(enums.TransferState, description=m.Computer.transfer_state.comment)
|
transfer_state = EnumField(enums.TransferState, description=m.Computer.transfer_state.comment)
|
||||||
receiver_address = SanitizedStr(validate=f.validate.Length(max=42))
|
receiver_address = SanitizedStr(validate=f.validate.Length(max=42))
|
||||||
deliverynote_address = SanitizedStr(validate=f.validate.Length(max=42))
|
deliverynote_address = SanitizedStr(validate=f.validate.Length(max=42))
|
||||||
|
|
||||||
|
|
||||||
class Desktop(Computer):
|
class Desktop(Computer):
|
||||||
__doc__ = m.Desktop.__doc__
|
__doc__ = m.Desktop.__doc__
|
||||||
|
|
Reference in New Issue