Skip to content

Commit

Permalink
Fix fields names in submissions list
Browse files Browse the repository at this point in the history
Closes issue labd#223
  • Loading branch information
toptalo committed Feb 7, 2024
1 parent aa6cab8 commit dddccef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtailstreamforms/models/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def get_data_fields(self):

data_fields = [("submit_time", _("Submission date"))]
data_fields += [
(get_slug_from_string(field["value"]["label"]), field["value"]["label"])
(field["value"]["name"] or get_slug_from_string(field["value"]["label"]), field["value"]["label"])
for field in self.get_form_fields()
]
if getattr(settings, "WAGTAILSTREAMFORMS_SHOW_FORM_REFERENCE", False):
Expand Down

0 comments on commit dddccef

Please sign in to comment.