Skip to content

Commit

Permalink
Add ID to instance and request filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Oct 12, 2023
1 parent 61dba75 commit fd0b7f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service_catalog/filters/instance_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CharInFilter(BaseInFilter, CharFilter):
class InstanceFilter(SquestFilter):
class Meta:
model = Instance
fields = ['name', 'requester', 'service', 'state', 'quota_scope']
fields = ['id', 'name', 'requester', 'service', 'state', 'quota_scope']

state = MultipleChoiceFilter(choices=InstanceState.choices)
quota_scope = MultipleChoiceFilter(
Expand Down
2 changes: 1 addition & 1 deletion service_catalog/filters/request_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class RequestFilter(SquestFilter):
class Meta:
model = Request
fields = ['instance__name', 'user__id', 'instance__service__id', 'operation', 'instance__quota_scope',
fields = ['id', 'instance__name', 'user__id', 'instance__service__id', 'operation', 'instance__quota_scope',
'operation__type', 'state']

instance__service__id = MultipleChoiceFilter(
Expand Down

0 comments on commit fd0b7f9

Please sign in to comment.