I have some models with a large number of inlines. Since not all are needed for every object I declared the inline model with extra = 0
so that a small add +
appeared on the inline.
However, this seems to no longer work in django 1.5. If extra = 0
is set, the inline is no longer editable.
Is there a way to get the 1.4 behavior into 1.5?
Example Code:
class ModelInline(admin.StackedInline):
model = MyModel
extra = 0
class OtherModelAdmin(admin.ModelAdmin)
inlines = [ModelInline]
admin.site.register(OtherModel, OtherModelAdmin)
Edit (some screens):
Django 1.4:
Django 1.5:
(Hinzufügen == add)