Source

HackersEdge / he_one / forms.py

from django import forms
from selectable.forms.widgets import AutoCompleteWidget
from he_one.lookups import HostLookup

class AddressBarForm(forms.Form):
    addrbar = forms.CharField(
        label='Address Bar',
        widget=AutoCompleteWidget(HostLookup),
        required=False,
    )