summaryrefslogtreecommitdiff
path: root/api/opendc/models
diff options
context:
space:
mode:
Diffstat (limited to 'api/opendc/models')
-rw-r--r--api/opendc/models/prefab.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/opendc/models/prefab.py b/api/opendc/models/prefab.py
index edf1d4c4..2d20208c 100644
--- a/api/opendc/models/prefab.py
+++ b/api/opendc/models/prefab.py
@@ -1,5 +1,6 @@
from opendc.models.model import Model
from opendc.models.user import User
+from opendc.util.database import DB
from opendc.util.exceptions import ClientError
from opendc.util.rest import Response
@@ -26,3 +27,6 @@ class Prefab(Model):
#except KeyError:
# OpenDC-authored objects don't necessarily have an authorId
# return
+
+ def get_all():
+ return DB.fetch_all({}, Prefab.collection_name)