Skip to main content
# Django Bootstrap Typeahead

## Convert django model choice fields into typeahead fields.

Typeahead inputs built ontop of [Django](https://www.djangoproject.com/) and [Bootstrap](http://getbootstrap.com/).

![Example](http://thegoods.aj7may.com/content/images/2014/Feb/Screen_Shot_2014_02_05_at_5_27_56_PM.png)

### 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._ `{{ form.media }}`
* Also be sure to include [Twitter Bootstrap](http://getbootstrap.com/)

### Example:

_forms.py_

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(
queryset=Thing.objects.all(),
builder=build_thing
)
multi_typeahead = MultipleTypeaheadField(
queryset=Thing.objects.all(),
builder=build_thing
)

Metadata

Release files for django-bootstrap-typeahead 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-bootstrap-typeahead 1.1.5
File Size Uploaded Provenance Actions
django-bootstrap-typeahead-1.1.5.tar.gz 6.0 kB Without provenance Details for django-bootstrap-typeahead-1.1.5.tar.gz

Release files / django-bootstrap-typeahead-1.1.5.tar.gz

Download URL django-bootstrap-typeahead-1.1.5.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0dc8d58ed53f1946834606bdeca3104097a7aa34f3b706b3e255910b41a4c851
BLAKE2b-256 checksum
How to use checksums
5d0a9923eeac8153a550b01c162a91720f07a9cfe2aad5b49c6010778244b9a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-bootstrap-typeahead 1.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page