Person: Introduce PeopleResourceInline
This commit is contained in:
parent
65569f0b44
commit
bab37a767e
1 changed files with 7 additions and 0 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Reference in a new issue