1. Germano Gabbianelli
  2. django-autocomplete
  3. Issues
Issue #20 new

AutocompleteForm and autocompleteform_factory

Germano Gabbianelli
repo owner created an issue

I planned to remove autocomplete.utils and add autocomplete.forms instead (attached).

The new code will allow to define an AutocompleteForm as follows: {{{


class MyUserForm(AutocompleteForm): class Meta: autocomplete_fields = { 'field': 'autocomplete.id', 'other_field': 'other.id', } model = User }}}

The code needs some tests if it will be included.