diff options
-rwxr-xr-x | pytask/taskapp/views.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/pytask/taskapp/views.py b/pytask/taskapp/views.py index 5223f49..bbfb8fa 100755 --- a/pytask/taskapp/views.py +++ b/pytask/taskapp/views.py @@ -8,6 +8,8 @@ from django.core.context_processors import csrf from django.core.urlresolvers import reverse from django.utils import simplejson as json +from tagging.models import Tag + from pytask.views import show_msg from pytask.taskapp import forms as taskapp_forms @@ -687,12 +689,3 @@ def suggest_task_tags(request): json_response = json.dumps(response) return http.HttpResponse(json_response) - -def suggest_task_tags(request): - """Returns the tags matching the query for the AJAXy autocomplete - to get tags related to tasks. - """ - - taskapp_models.Task.objects.filter(tags) - json_response = json.dumps(['abc', 'bca', 'bowbow']) - return http.HttpResponse(json_response) |