add a filter
[wolnelektury.git] / src / funding / admin.py
index bb44cd4..7402c2a 100644 (file)
@@ -73,6 +73,7 @@ class SpentAdmin(admin.ModelAdmin):
     model = Spent
     list_display = ['book', 'amount', 'timestamp']
     search_fields = ['book__title']
+    autocomplete_fields = ['book']
 
 
 admin.site.register(Offer, OfferAdmin)