aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorJacob Hodgdon <jhodgdon@iol.unh.edu>2021-08-24 15:48:36 -0400
committerRaven Hodgdon <jhodgdon@iol.unh.edu>2021-09-14 16:57:19 -0400
commiteb75b380a32c65dc8d0857bae093c7a96f30f024 (patch)
treec23c61a3e16a5d946fd0743748065767b5256fa7 /src/api
parent4e8c162a104a46f7625b0ad624285ed39568d3a1 (diff)
removal of jira
Change-Id: I1b1da49147219d94837cdd50b908ba30f8cf961c Signed-off-by: Jacob Hodgdon <jhodgdon@iol.unh.edu> Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Raven Hodgdon <jhodgdon@iol.unh.edu>
Diffstat (limited to 'src/api')
-rw-r--r--src/api/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/views.py b/src/api/views.py
index 1793c79..c0da1bc 100644
--- a/src/api/views.py
+++ b/src/api/views.py
@@ -391,7 +391,7 @@ def available_templates(request):
# mirrors MultipleSelectFilter Widget
avt = []
for lab in Lab.objects.all():
- for template in ResourceTemplate.objects.filter(Q(lab=lab), Q(owner=token.user) | Q(public=True)):
+ for template in ResourceTemplate.objects.filter(Q(owner=token.user) | Q(public=True), lab=lab, temporary=False):
available_resources = lab.get_available_resources()
required_resources = template.get_required_resources()
least_available = 100