We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f9a40 commit 53a5507Copy full SHA for 53a5507
api/admin.py
@@ -1,6 +1,6 @@
1
from django.contrib import admin
2
3
-from api.models import Dataset, Organization
+from api.models import Dataset, Organization, UseCase
4
5
6
# Register models needed for authorization app's autocomplete fields
@@ -16,3 +16,10 @@ class DatasetAdmin(admin.ModelAdmin):
16
list_display = ("title", "organization", "created")
17
list_filter = ("organization",)
18
search_fields = ("title", "description")
19
+
20
21
+@admin.register(UseCase)
22
+class UseCaseAdmin(admin.ModelAdmin):
23
+ list_display = ("title", "slug", "created")
24
+ search_fields = ("title", "slug")
25
+ search_fields = ("title", "summary")
0 commit comments