Limit Edition search to only editions with ebooks

pull/1/head
eric 2013-07-26 19:07:52 -04:00
parent 91e2d41b67
commit ecc75ee0ad
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class PublisherNameLookup(ModelLookup):
class EditionLookup(ModelLookup):
model = Edition
search_fields = ('title__icontains',)
filters = {'ebooks__isnull': False, }
registry.register(OwnerLookup)
registry.register(WorkLookup)