Completion starts only when we have 3 characters

This commit is contained in:
Martin Pépin 2017-01-06 17:13:57 +01:00
parent cff4f176c0
commit c355c71fe5

View file

@ -1,13 +1,10 @@
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import autocomplete_light
from django.contrib.auth.models import User
autocomplete_light.register(
User, search_fields=('username', 'first_name', 'last_name'),
autocomplete_js_attributes={'placeholder': 'membre...'})
autocomplete_js_attributes={'placeholder': 'membre...'},
widget_attrs={'data-widget-minimum-values': 3})