1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix typo in search query

This commit is contained in:
kkthxbye-code
2023-02-06 21:25:24 +01:00
committed by Jeremy Stretch
parent ce166b12ce
commit a61e7e7c04

View File

@@ -103,7 +103,7 @@ class CachedValueSearchBackend(SearchBackend):
# Partial string matches are valid only on string values
query_filter &= Q(type=FieldTypes.STRING)
if object_types:
query_filter &= Q(object_typeo__in=object_types)
query_filter &= Q(object_type__in=object_types)
if lookup == LookupTypes.PARTIAL:
try: