mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
See diff
This commit is contained in:
@@ -257,6 +257,7 @@ class SecureAPIRequest(generic.View):
|
||||
fields = ['name']
|
||||
all_objects = self.models[model].objects
|
||||
results = []
|
||||
# This code is all bollocks, suggest rewriting it
|
||||
for field in fields:
|
||||
filter = field + "__icontains"
|
||||
objects = all_objects.filter(**{filter: term})
|
||||
|
||||
Reference in New Issue
Block a user