Skip to content

Instantly share code, notes, and snippets.

@ikks
Created August 28, 2012 13:21
Show Gist options
  • Save ikks/3497909 to your computer and use it in GitHub Desktop.
Save ikks/3497909 to your computer and use it in GitHub Desktop.
Sample of autocomplete_light_registry.py
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