Remove the redundant function for suggesting tags and added the required import.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sun, 16 Jan 2011 20:55:31 +0530
changeset 428 c9d8cd54195e
parent 427 42156890006d
child 429 288ce2de2172
Remove the redundant function for suggesting tags and added the required import.
pytask/taskapp/views.py
--- a/pytask/taskapp/views.py	Sun Jan 16 20:54:42 2011 +0530
+++ b/pytask/taskapp/views.py	Sun Jan 16 20:55:31 2011 +0530
@@ -8,6 +8,8 @@
 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 @@
 
     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)