Fix bug
This commit is contained in:
parent
b43772c3e5
commit
0146d9a33e
1 changed files with 2 additions and 0 deletions
|
@ -168,6 +168,8 @@ class ChatUserSearchSelect2View(BaseListView):
|
||||||
return _get_user_queryset(self.term)
|
return _get_user_queryset(self.term)
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
if self.request.user.is_authenticated:
|
||||||
|
raise Http404()
|
||||||
self.request = request
|
self.request = request
|
||||||
self.kwargs = kwargs
|
self.kwargs = kwargs
|
||||||
self.term = kwargs.get("term", request.GET.get("term", ""))
|
self.term = kwargs.get("term", request.GET.get("term", ""))
|
||||||
|
|
Loading…
Reference in a new issue