forked from DGNum/gestioCOF
Completion starts only when we have 3 characters
This commit is contained in:
parent
cff4f176c0
commit
c355c71fe5
1 changed files with 2 additions and 5 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue