mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 03:03:21 +00:00
Merge branch 'admin_area' into 'master'
Search field in Subscription admin area See merge request ae/Sith!133
This commit is contained in:
commit
23d86464c8
@ -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