Commit 1fd2df785a697680d3d48027a50ab2d22acd64d1
1 parent
91e6f9e2
Exists in
master
and in
34 other branches
Added filter case-insensitive
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com> Signed-off-by: Alexandre Barbosa <alexandrealmeidabarbosa@gmail.com>
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
colab_spb/views.py
... | ... | @@ -8,7 +8,7 @@ def get_list(request): |
8 | 8 | list_name = None |
9 | 9 | MAX = 0 |
10 | 10 | if request.GET.get('list_name'): |
11 | - list_name = request.GET['list_name'].title() | |
11 | + list_name = request.GET['list_name'] | |
12 | 12 | if request.GET.get('MAX'): |
13 | 13 | MAX = request.GET['MAX'] |
14 | 14 | |
... | ... | @@ -26,7 +26,7 @@ def get_list(request): |
26 | 26 | user = User.objects.get(username=request.user) |
27 | 27 | lists_for_user = mailman.get_user_mailinglists(user) |
28 | 28 | |
29 | - for list_ in MailingList.objects.filter(name=list_name): | |
29 | + for list_ in MailingList.objects.filter(name__iexact=list_name): | |
30 | 30 | if list_.name not in all_privates or list_.name in lists_for_user: |
31 | 31 | context['lists'].append(( |
32 | 32 | list_.name, | ... | ... |