Remove extraneous search view
This commit is contained in:
parent
91c0075ccf
commit
0f018b8572
2 changed files with 0 additions and 16 deletions
|
@ -40,12 +40,6 @@ urlpatterns = [
|
|||
views.task_detail,
|
||||
name='task_detail'),
|
||||
|
||||
# FIXME need both of these?
|
||||
path(
|
||||
'search-post/',
|
||||
views.search_post,
|
||||
name="search-post"),
|
||||
|
||||
path(
|
||||
'search/',
|
||||
views.search,
|
||||
|
|
|
@ -286,16 +286,6 @@ def add_list(request):
|
|||
return render(request, 'todo/add_list.html', locals())
|
||||
|
||||
|
||||
@user_passes_test(check_user_allowed)
|
||||
def search_post(request):
|
||||
"""Redirect POST'd search param to query GET string
|
||||
"""
|
||||
if request.POST:
|
||||
q = request.POST.get('q')
|
||||
url = reverse('todo:search') + "?q=" + q
|
||||
return redirect(url)
|
||||
|
||||
|
||||
@user_passes_test(check_user_allowed)
|
||||
def search(request):
|
||||
"""Search for tasks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue