Skip to content

Commit

Permalink
Restrict document extensions (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored Nov 12, 2024
1 parent f563306 commit 621c7d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,18 @@
}

WAGTAILDOCS_DOCUMENT_MODEL = "core.CustomDocument"
WAGTAILDOCS_EXTENSIONS = [
"pdf",
"xls",
"xlsx",
"doc",
"docx",
"xls",
"xlsx",
"stl",
"txt",
"csv",
]

WAGTAILIMAGES_IMAGE_MODEL = "images.CustomImage"

Expand Down

0 comments on commit 621c7d3

Please sign in to comment.