exact matching for public_primary_key and (#2098)

inside_organization_number on get
internal API alert groups endpoint

# What this PR does

## Which issue(s) this PR fixes

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
This commit is contained in:
Joey Orlando 2023-06-05 17:30:07 +02:00 committed by GitHub
parent 0883baeb95
commit 05fc41828e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -308,7 +308,7 @@ class AlertGroupView(
pagination_class = TwentyFiveCursorPaginator
filter_backends = [SearchFilter, AlertGroupFilterBackend]
search_fields = ["public_primary_key", "inside_organization_number", "web_title_cache"]
search_fields = ["=public_primary_key", "=inside_organization_number", "web_title_cache"]
filterset_class = AlertGroupFilter