sehmaschine/django-grappelli — Issue #42: performance with autocomplete-lookup
Author: sehmaschine
Created: 2011-10-09 08:03:42+00:00
State: open

this line
data = [{"value":f.pk,"label":u'%s' % get_label(f)} for f in model.objects.filter(**filters) if get_lookup(f,term)]
is inefficient and needs to be replaced.