2011-11-18 14:22:21 +00:00
|
|
|
from selectable.base import ModelLookup
|
|
|
|
from selectable.registry import registry
|
|
|
|
|
|
|
|
from django.contrib.auth.models import User
|
|
|
|
|
|
|
|
class OwnerLookup(ModelLookup):
|
|
|
|
model = User
|
2012-10-02 22:47:52 +00:00
|
|
|
search_fields = ('username__icontains',)
|
2011-11-18 14:22:21 +00:00
|
|
|
|
|
|
|
registry.register(OwnerLookup)
|