Commit c37d2c27 by Barnabás Czémán

fix flake8 warning

parent 224cf27c
Pipeline #642 failed with stage
in 0 seconds
...@@ -362,7 +362,10 @@ class GroupList(LoginRequiredMixin, SuperuserRequiredMixin, SingleTableView): ...@@ -362,7 +362,10 @@ class GroupList(LoginRequiredMixin, SuperuserRequiredMixin, SingleTableView):
data = self.model.objects.all() data = self.model.objects.all()
search = self.request.GET.get("s") search = self.request.GET.get("s")
if search: if search:
data = data.filter(Q(name__icontains=search) | Q(description__icontains=search)) data = data.filter(
Q(name__icontains=search) |
Q(description__icontains=search)
)
return data return data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment