kpsul/gestioncof/autocomplete_light_registry.py
Martin Pépin 0d09bf62af Completion starts only when we have 3 characters
And this time it works
2017-01-06 17:26:35 +01:00

10 lines
232 B
Python

# -*- coding: utf-8 -*-
import autocomplete_light
from django.contrib.auth.models import User
autocomplete_light.register(
User, search_fields=('username', 'first_name', 'last_name'),
attrs={'placeholder': 'membre...'}
)