Remove the redundant function for suggesting tags and added the required import.
--- 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)