Person: Introduce PeopleResourceInline

This commit is contained in:
PCoder 2021-11-28 11:10:19 +05:30
parent 65569f0b44
commit bab37a767e

View file

@ -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 = (