From bab37a767ecbfb3ced31faef46e5d3d7e510754a Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 28 Nov 2021 11:10:19 +0530 Subject: [PATCH] Person: Introduce PeopleResourceInline --- app/admin.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 = (