From d23463777b92bf8c9c4058e70dc724ce96cfddc8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 21 Mar 2019 14:19:24 +0100 Subject: GlobalVarEdit: fix new formset kwargs --- ishtar_common/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ishtar_common/views.py') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index b2ced4295..a45d4ad08 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -1044,8 +1044,10 @@ class QRCodeView(IshtarMixin, LoginRequiredMixin, View): class GlobalVarEdit(IshtarMixin, AdminLoginRequiredMixin, ModelFormSetView): template_name = 'ishtar/formset.html' model = models.GlobalVar - extra = 1 - can_delete = True + factory_kwargs = { + 'extra': 1, + 'can_delete': True + } page_name = _(u"Global variables") fields = ['slug', 'value', 'description'] -- cgit v1.2.3