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