Commit 2a386b8e by Bach Dániel

set time of suspend on instance clean

parent 99df6972
......@@ -433,6 +433,8 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
for cps in customized_params]
def clean(self, *args, **kwargs):
if self.time_of_suspend is None:
if self.time_of_delete is None:
super(Instance, self).clean(*args, **kwargs)
  • {u'failed': [(, TypeError("can't compare datetime.datetime to NoneType",))], u'success': []}

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment