1. Pedro Beck
  2. django-taggit-autosuggest

Commits

Fabian Topfstedt  committed cad9b64

merging

  • Participants
  • Parent commits dbad5fa
  • Branches default

Comments (0)

Files changed (1)

File taggit_autosuggest/views.py

View file
     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]]