mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
Search field in Subscription admin area
This commit is contained in:
parent
64c479a02e
commit
bb47ad97a3
@ -25,5 +25,11 @@
|
|||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
from subscription.models import Subscription
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user