Skip to content

Commit

Permalink
Fix 400 error when editing Leadership page
Browse files Browse the repository at this point in the history
This changset increases the number of form fields allowed to be submitted
in one GET/POST, but only for deployments where the CMS is enabled.

This is needed to support complex pages with lots of (small, but) nested
fields.

Ref: https://mozilla.sentry.io/issues/5800147294
  • Loading branch information
stevejalim authored and alexgibson committed Sep 5, 2024
1 parent b34026c commit 555161e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bedrock/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2098,6 +2098,12 @@ def before_send(event, hint):
]
)

# Increase the number of form fields allowed to be submitted in one GET/POST,
# but only for deployments where the CMS is enabled. This is needed to support
# complex pages with lots of (small, but) nested fields.
# Resolves https://mozilla.sentry.io/issues/5800147294
DATA_UPLOAD_MAX_NUMBER_FIELDS = 2000


def lazy_wagtail_langs():
enabled_wagtail_langs = [
Expand Down

0 comments on commit 555161e

Please sign in to comment.