Commits

Fabian Topfstedt committed cad9b64

merging

Comments (0)

Files changed (1)

taggit_autosuggest/views.py

     except ValueError:
         limit = MAX_SUGGESTIONS
 
-    tag_name_qs = TAG_MODEL.objects.filter(name__icontains=query).\
+    tag_name_qs = Tag.objects.filter(name__icontains=query).\
         values_list('name', flat=True)
     data = [{'name': n, 'value': n} for n in tag_name_qs[:limit]]