summaryrefslogtreecommitdiff
path: root/opendc/models/rack.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-25 10:44:00 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-25 10:44:00 +0200
commit7056ad696ad5397ba763a70808b379e213e529f9 (patch)
tree07b50f89a0167ad2e666f5ed00607e8a93205ae9 /opendc/models/rack.py
parentafeae8c5cd413dfda8836e1fec6f3ed1b00ce6aa (diff)
Fix rack to tile add endpoint
Diffstat (limited to 'opendc/models/rack.py')
-rw-r--r--opendc/models/rack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc/models/rack.py b/opendc/models/rack.py
index b547afa1..da965849 100644
--- a/opendc/models/rack.py
+++ b/opendc/models/rack.py
@@ -52,7 +52,7 @@ class Rack(Model):
obj.insert()
self.id = obj.id
- self.insert_with_id()
+ self.insert_with_id(is_auto_generated=False)
def delete(self):
"""Delete a Rack by deleting its associated object."""