Commit 23d86464 authored by Skia's avatar Skia 🤘
Browse files

Merge branch 'admin_area' into 'master'

Search field in Subscription admin area

See merge request ae/Sith!133
parents 64c479a0 bb47ad97
Pipeline #1408 passed with stage
in 6 minutes and 16 seconds
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment