mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Use insesitive like
This commit is contained in:
@@ -203,7 +203,7 @@ class BlacklistHandler(BaseHandler):
|
||||
|
||||
def read(self, request):
|
||||
if request.GET.get('value'):
|
||||
obj = Blacklist.objects.filter(value=request.GET.get('value'))
|
||||
obj = Blacklist.objects.filter(value__icontains=request.GET.get('value'))
|
||||
if obj.count() and request.GET.get('type'):
|
||||
obj = obj.filter(type=request.GET.get('type'))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user