Merge branch 'admin_area' into 'master'

Search field in Subscription admin area

See merge request ae/Sith!133
This commit is contained in:
Skia 2017-11-17 12:02:31 +01:00
commit 23d86464c8

View File

@ -25,5 +25,11 @@
from django.contrib import admin
from subscription.models import Subscription
from haystack.admin import SearchModelAdmin
admin.site.register(Subscription)
class SubscriptionAdmin(SearchModelAdmin):
search_fields = ["member__username", "subscription_start", "subscription_end", "subscription_type"]
admin.site.register(Subscription, SubscriptionAdmin)