blechreiz-website/imagestore/autocomplete_light_registry.py

9 lines
180 B
Python

# coding=utf-8
from __future__ import unicode_literals
import autocomplete_light
from tagging.models import Tag
autocomplete_light.register(
Tag,
search_fields=['^name']
)