Skip to main content

Convert django model choice fields into typeahead fields.

Project description

# Django Bootstrap Typeahead

## Convert django model choice fields into typeahead fields.

Typeahead inputs built ontop of [Django]( and [Bootstrap](


### Install:
`> pip install django-bootstrap-typeahead`

### Usage:

* Add `django-bootstrap-typeahead` to the installed apps of your Django Project
* create a form and use `TypeaheadField` instead of `ModelChoiceField`
or `MultipleTypeaheadField` instead of `ModelMultipleChoiceField`
* Be sure to include the form's required media in the template. _ie._ `{{ }}`
* Also be sure to include [Twitter Bootstrap](

### Example:


from django import forms
from django_bootstrap_typeahead.fields import *
from .models import Thing

def build_thing(value):
thing, created = Thing.objects.get_or_create(name=value)
return thing

class TestForm(forms.Form):
typeahead = TypeaheadField(
multi_typeahead = MultipleTypeaheadField(

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-bootstrap-typeahead, version 1.1.5
Filename, size File type Python version Upload date Hashes
Filename, size django-bootstrap-typeahead-1.1.5.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page