diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2020-07-15 13:00:53 -0700 |
---|---|---|
committer | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2020-07-15 13:00:53 -0700 |
commit | 4cc9426d72fe9baa8a4a7f56c6d43493bd011f02 (patch) | |
tree | ade06936c72c68b359b6a409bfebd7568c28eac0 /src/account/models.py | |
parent | 682f7ebb6d0be5ddd8e4c699e1f87fc20a3fe1e3 (diff) |
Fix Flake8 Violations
Several minor issues found through flake8 should now be fixed in the
code.
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Change-Id: I4f6e5dac5ed8378911598ded714602bbb3f6bd6b
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)) |