aboutsummaryrefslogtreecommitdiffstats
path: root/src/resource_inventory/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/resource_inventory/models.py')
-rw-r--r--src/resource_inventory/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py
index d152698..1e2e547 100644
--- a/src/resource_inventory/models.py
+++ b/src/resource_inventory/models.py
@@ -424,6 +424,10 @@ class Host(Resource):
"ipmi_create": str(ipmi)
}
+ def release(self):
+ self.booked = False
+ self.save()
+
class Interface(models.Model):
id = models.AutoField(primary_key=True)