diff --git a/app/admin.py b/app/admin.py index bddbb9f..d4b8803 100644 --- a/app/admin.py +++ b/app/admin.py @@ -3,7 +3,14 @@ from django.utils.html import format_html from .models import * +class PeopleResourceInline(admin.TabularInline): + model = PeopleResource + + class PersonAdmin(admin.ModelAdmin): + inlines = [ + PeopleResourceInline, + ] readonly_fields = ['id'] search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country__short_name', 'contact_email'] fieldsets = (