Skip to content
Snippets Groups Projects
Commit 3a4258fd authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add the model admin for fund

parent 01e8421f
No related branches found
No related tags found
No related merge requests found
# from django.contrib import admin
from wagtail.contrib.modeladmin.options import ModelAdmin, ModelAdminGroup
# Register your models here.
from .models import Fund
class FundModelAdmin(ModelAdmin):
model = Fund
menu_icon = 'site'
list_display = ('name',)
list_filter = ('name',)
search_fields = ('name',)
class ApplyAdminGroup(ModelAdminGroup):
menu_label = 'Apply'
menu_icon = 'folder-open-inverse'
menu_order = 200
items = (FundModelAdmin,)
from wagtail.contrib.modeladmin.options import modeladmin_register
from .admin import ApplyAdminGroup
modeladmin_register(ApplyAdminGroup)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment