diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-07-27 17:03:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2020-07-27 17:03:45 +0000 |
commit | dc115112cd0de9764ac6d8b4fb2dd1c0fc37bf59 (patch) | |
tree | 167dbee9f95b510e56aec5f13bf09cc49406dcea /src/account/models.py | |
parent | b743f3ad85acca17c473d123f715091165969087 (diff) | |
parent | 4cc9426d72fe9baa8a4a7f56c6d43493bd011f02 (diff) |
Merge "Fix Flake8 Violations"
Diffstat (limited to 'src/account/models.py')
-rw-r--r-- | src/account/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/account/models.py b/src/account/models.py index 4aab306..9624a53 100644 --- a/src/account/models.py +++ b/src/account/models.py @@ -16,6 +16,7 @@ import random from collections import Counter + class LabStatus(object): """ A Poor man's enum for the status of a lab. @@ -216,7 +217,7 @@ class Lab(models.Model): def get_available_resources(self): # Cannot import model normally due to ciruclar import - Server = apps.get_model('resource_inventory', 'Server') # TODO: Find way to import ResourceQuery + Server = apps.get_model('resource_inventory', 'Server') # TODO: Find way to import ResourceQuery resources = [str(resource.profile) for resource in Server.objects.filter(lab=self, booked=False)] return dict(Counter(resources)) |