Skip to content

Commit

Permalink
Merge pull request #1112 from lakridserne/bug/too_many_fields
Browse files Browse the repository at this point in the history
Introduce setting to increase max number fields
  • Loading branch information
rasmusselsmark authored Oct 7, 2024
2 parents 3665d2a + 8d8d185 commit 4444c4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ DATABASE_URL=postgres://postgres_user:postgres_password@database/database_name
POSTGRES_USER=postgres_user
POSTGRES_PASSWORD=postgres_password
POSTGRES_DB=database_name

DATA_UPLOAD_MAX_NUMBER_FIELDS = 10240
2 changes: 2 additions & 0 deletions forenings_medlemmer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5"

DATA_UPLOAD_MAX_NUMBER_FIELDS = int(os.environ["DATA_UPLOAD_MAX_NUMBER_FIELDS"])

MIDDLEWARE = (
"django.middleware.security.SecurityMiddleware",
"corsheaders.middleware.CorsMiddleware",
Expand Down

0 comments on commit 4444c4a

Please sign in to comment.