1
0
Fork 0
forked from DGNum/gestioCOF
gestioCOF/gestioncof/autocomplete_light_registry.py
2016-07-15 00:20:08 +02:00

13 lines
363 B
Python

# -*- 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...'})