I'm using Django 2.0.9
and I'm creating a simple TabularInline
ModelAdmin, as follows:
class AnswerInline(admin.TabularInline):
model = Answer
This is then used in a ModelAdmin
object, like so: inlines = [AnswerInline]
. The ModelAdmin
is registered with the admin
site.
Everything works as expected, except that I do not see the ability to add further inline models. Here's what I mean:
I've seen other inlines where there is such a button, which would dynamically add more fields that I can populate.
I've tried overriding things on the TabularInline
, like setting has_add_permission
to return true
and setting max_num
to 1000
, but I still cannot get the button to show up.
Would appreciate some outside input here.
Thanks!