Docker Image and first iteration
This commit is contained in:
1 parent
723b64b1c4
commit
bd9209ebb7
40 files changed
+26643
No files matched your search
@@ -0,0 +1,19 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import PortfolioEntry, Region
|
||||
|
||||
|
||||
@admin.register(Region)
|
||||
class RegionAdmin(admin.ModelAdmin):
|
||||
list_display = ("name", "code", "level", "parent")
|
||||
list_filter = ("level", "parent")
|
||||
search_fields = ("name", "code")
|
||||
|
||||
|
||||
@admin.register(PortfolioEntry)
|
||||
class PortfolioEntryAdmin(admin.ModelAdmin):
|
||||
list_display = ("title", "organization", "entry_type", "is_published", "display_order")
|
||||
list_filter = ("entry_type", "is_published", "regions")
|
||||
search_fields = ("title", "organization", "summary")
|
||||
filter_horizontal = ("regions",)
|
||||
|
||||
Reference in new issue
Block a user