Add PeopleRangeInline

This commit is contained in:
PCoder 2021-11-28 11:56:16 +05:30
parent 208157f8c1
commit e26c0108a0

View file

@ -7,9 +7,14 @@ class PeopleResourceInline(admin.TabularInline):
model = PeopleResource
class PeopleRangeInline(admin.TabularInline):
model = PeopleRange
class PersonAdmin(admin.ModelAdmin):
inlines = [
PeopleResourceInline,
PeopleRangeInline
]
readonly_fields = ['id']
search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country__short_name', 'contact_email']