Limit Edition search to only editions with ebooks
parent
91e2d41b67
commit
ecc75ee0ad
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue