Created
August 28, 2012 13:21
-
-
Save ikks/3497909 to your computer and use it in GitHub Desktop.
Sample of autocomplete_light_registry.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import autocomplete_light | |
from cities_light.models import City | |
autocomplete_light.register(City, search_fields=('search_names',), | |
autocomplete_js_attributes={'placeholder': 'city name ..'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment