Search custom field values.

This commit is contained in:
Will Stott 2019-07-31 14:04:31 +01:00 committed by GitHub
parent e1e05999eb
commit 45854e44a7
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)