Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 412 Bytes
from django.contrib.auth.models import User, Group
import autocomplete_light
class AutocompleteDocumentRelations(
autocomplete_light.AutocompleteGenericBase):
choices = (
User.objects.all(),
Group.objects.all(),
)
search_fields = (
('username', 'email', 'first_name', 'last_name'),
('name',),
)
autocomplete_light.register(AutocompleteDocumentRelations)