Merge pull request #769 from willstott101/patch-2

Search custom field values.
This commit is contained in:
Garret Wassermann 2019-08-27 21:14:07 -04:00 committed by GitHub
commit 4adec7c5b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,8 @@ def apply_query(queryset, params):
Q(title__icontains=search) |
Q(description__icontains=search) |
Q(resolution__icontains=search) |
Q(submitter_email__icontains=search)
Q(submitter_email__icontains=search) |
Q(ticketcustomfieldvalue__value__icontains=search)
)
queryset = queryset.filter(qset)