Allow filtering by all possible statuses

This commit is contained in:
richard-dds
2018-10-31 10:42:41 -04:00
parent 0494382d00
commit d069897062
6 changed files with 19 additions and 30 deletions

View File

@@ -207,3 +207,7 @@ class Requests(object):
comment = RequestInternalComment(request=request, text=comment_text, user=user)
RequestsQuery.add_and_commit(comment)
return request
@classmethod
def possible_statuses(cls):
return [s[1].value for s in RequestStatus.__members__.items()]