Add PeopleRangeInline
This commit is contained in:
parent
208157f8c1
commit
e26c0108a0
1 changed files with 5 additions and 0 deletions
|
@ -7,9 +7,14 @@ class PeopleResourceInline(admin.TabularInline):
|
||||||
model = PeopleResource
|
model = PeopleResource
|
||||||
|
|
||||||
|
|
||||||
|
class PeopleRangeInline(admin.TabularInline):
|
||||||
|
model = PeopleRange
|
||||||
|
|
||||||
|
|
||||||
class PersonAdmin(admin.ModelAdmin):
|
class PersonAdmin(admin.ModelAdmin):
|
||||||
inlines = [
|
inlines = [
|
||||||
PeopleResourceInline,
|
PeopleResourceInline,
|
||||||
|
PeopleRangeInline
|
||||||
]
|
]
|
||||||
readonly_fields = ['id']
|
readonly_fields = ['id']
|
||||||
search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country__short_name', 'contact_email']
|
search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country__short_name', 'contact_email']
|
||||||
|
|
Loading…
Reference in a new issue