From b2e71b46ac195dd5eaca350a4b9b2262680c1c39 Mon Sep 17 00:00:00 2001 From: Wim Feijen Date: Sat, 7 Dec 2019 21:26:32 +0100 Subject: [PATCH] solves issue #57 Update edit_handlers.py to use form['field_name'].value() because I believe this to be correct in Django 2.2.8 --- condensedinlinepanel/edit_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/condensedinlinepanel/edit_handlers.py b/condensedinlinepanel/edit_handlers.py index ca495c8..a1bda67 100644 --- a/condensedinlinepanel/edit_handlers.py +++ b/condensedinlinepanel/edit_handlers.py @@ -144,7 +144,7 @@ def get_form_extra_data(form): 'id': i, 'instanceAsStr': six.text_type(form.instance), 'fields': { - field_name: form[field_name].field.widget.format_value(form[field_name].value()) or form[field_name].value() + field_name: form[field_name].value() for field_name in form.fields.keys() }, 'extra': get_form_extra_data(form), @@ -160,7 +160,7 @@ def get_form_extra_data(form): ], 'emptyForm': { 'fields': { - field_name: self.empty_form[field_name].field.widget.format_value(self.empty_form[field_name].value()) or self.empty_form[field_name].value() + field_name: self.empty_form[field_name].value() for field_name in self.empty_form.fields.keys() } }