Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

solves issue #57 #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions condensedinlinepanel/edit_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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()
}
}
Expand Down