Skip to content

Commit

Permalink
Backport of #268: Set field as primary, so we call @@Download on the …
Browse files Browse the repository at this point in the history
…content, that file will be downloaded automatically.
  • Loading branch information
cekk committed Sep 16, 2024
1 parent 9b24886 commit b760f27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
5.1.15 (unreleased)
-------------------

- Nothing changed yet.
- Backport of #268: Set `file_principale` field as primary, so we call @@download on the content, that file will be downloaded automatically.
[cekk]


5.1.14 (2024-09-06)
Expand Down
2 changes: 2 additions & 0 deletions src/design/plone/contenttypes/behaviors/multi_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class IMultiFileSchema(model.Schema):
required=False,
)

model.primary("file_principale")


@provider(IFormFieldProvider)
class IMultiFile(IMultiFileSchema):
Expand Down

0 comments on commit b760f27

Please sign in to comment.