summaryrefslogtreecommitdiff
path: root/api/opendc/models
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-26 22:10:05 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-26 23:22:56 +0100
commit81003bf38eb5384f6b7f485b5186e1df4e7430b4 (patch)
treee8fb3566eb9167cb23167c0689097243fe8566ee /api/opendc/models
parent89cba029a37e79b7c730caffc04ce547cda4837c (diff)
Use only Model.get_id for obtaining model identifier
Diffstat (limited to 'api/opendc/models')
-rw-r--r--api/opendc/models/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/opendc/models/model.py b/api/opendc/models/model.py
index bcb833ae..32159ca3 100644
--- a/api/opendc/models/model.py
+++ b/api/opendc/models/model.py
@@ -25,7 +25,7 @@ class Model:
def get_id(self):
"""Returns the ID of the enclosed object."""
- return str(self.obj['_id'])
+ return self.obj['_id']
def check_exists(self):
"""Raises an error if the enclosed object does not exist."""