Skip to content

A fresh approach to autocomplete implementations, specially for Django. It supports templated autocompletes, foreign key, many to many, generic foreign key, generic many to many, autocompletes that depend on each other, etc, etc ... Status: 2.x.x stable, 1.x.x deprecated.

License

askholme/django-autocomplete-light

 
 

Repository files navigation

image

image

image

image

django-autocomplete-light's purpose is to enable autocompletes quickly and properly in a django project: it is the fruit of years of R&D. It was designed for Django so that every part overridable or reusable independently. It is stable, tested, documented and fully supported: it tries to be a good neighbour in Django ecosystem.

Features

Features include:

  • charfield, foreign key, many to many autocomplete widgets,
  • generic foreign key, generic many to many autocomplete widgets,
  • django template engine support for autocompletes, enabling you to include images etc ...
  • 100% overridable HTML, CSS, Python and Javascript: there is no variable hidden far down in the scope anywhere.
  • add-another popup supported outside the admin too.
  • keyboard is supported with enter, tab and arrows by default.
  • Django 1.7, Python3 support

Each feature has a live example and is fully documented. It is also designed and documented so that you create your own awesome features too.

Upgrade from 1.x.x

To upgrade to v2, please enjoy the v1 to v2 upgrade instructions (documented with love !).

  • the Autocomplete class design hasn't changed at all.
  • yourlabsWidget() doesn't parses data-* options the same,
  • the django/form python code has been re-organised ie. get_widgets_dict() is gone and autocomplete_light.ModelForm wraps around all features by default.
  • use autocomplete_light.ModelForm instead of autocomplete_light.GenericModelForm - generic foreign keys and django-generic-m2m are supported by default if installed.

Resources

Resources include:

About

A fresh approach to autocomplete implementations, specially for Django. It supports templated autocompletes, foreign key, many to many, generic foreign key, generic many to many, autocompletes that depend on each other, etc, etc ... Status: 2.x.x stable, 1.x.x deprecated.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 63.8%
  • JavaScript 27.6%
  • CSS 5.1%
  • Shell 1.9%
  • Makefile 1.6%