Spaces:
Sleeping
Sleeping
File size: 555 Bytes
2e51161 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from django.contrib import admin
from .models import UseCases, DocumentTypes
from import_export.admin import ExportActionMixin
class UseCasesAdmin(ExportActionMixin, admin.ModelAdmin):
list_display = ('heading', 'paragraph')
search_fields = ('heading', 'paragraph')
class DocumentTypesAdmin(ExportActionMixin, admin.ModelAdmin):
list_display = ('name', 'subtitle', 'url')
search_fields = ('name', 'subtitle', 'url')
admin.site.register(UseCases, UseCasesAdmin)
admin.site.register(DocumentTypes, DocumentTypesAdmin)
|