Commit 42c3a3b1 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Not exact group search

Refs: #2793
parent 3bb98d48
......@@ -716,8 +716,7 @@ def group_search(request, extra_context=None, **kwargs):
form = AstakosGroupSearchForm(get_query(request))
if form.is_valid():
q = form.cleaned_data['q'].strip()
q = URLField().to_python(q)
queryset = AstakosGroup.objects.select_related().filter(name=q)
queryset = AstakosGroup.objects.select_related().filter(name__contains=q)
return object_list(
request,
queryset,
......
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 to comment