diff options
author | Madhusudan.C.S | 2011-01-16 20:55:31 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-01-16 20:55:31 +0530 |
commit | 2f765194413ab10096d796a1c43a1683dded49c6 (patch) | |
tree | a02c580effff28bdde446e0ebdfc7aa5681ac6a1 | |
parent | 5563ad2700c049c48c2720b66e43551d3c0cf58d (diff) | |
download | pytask-2f765194413ab10096d796a1c43a1683dded49c6.tar.gz pytask-2f765194413ab10096d796a1c43a1683dded49c6.tar.bz2 pytask-2f765194413ab10096d796a1c43a1683dded49c6.zip |
Remove the redundant function for suggesting tags and added the required import.
-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) |