# HG changeset patch # User Madhusudan.C.S # Date 1295191531 -19800 # Node ID c9d8cd54195ed962e0263113a7b94c56916d1897 # Parent 42156890006d6c6d1eb808d6b993d3bbbd323751 Remove the redundant function for suggesting tags and added the required import. diff -r 42156890006d -r c9d8cd54195e 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)