Skip to content

Commit 5fde709

Browse files
committed
removed moduli limitation in documento CT serializer
1 parent 436094f commit 5fde709

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Changelog
1010
[mamico]
1111
- Fix sorting in @scadenziario-day endpoint.
1212
[folix-01]
13+
- Removed moduli limitation on Documento CT serializer.
14+
[eikichi18]
1315

1416
6.3.1 (2024-12-12)
1517
------------------

src/design/plone/contenttypes/restapi/serializers/documento.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __call__(self, version=None, include_items=True):
5555
# Una via alternativa era l'injection di fullobject nella request ma
5656
# mi pare una cosa cattiva da fare
5757
brain_moduli = [
58-
x for x in self.context.getFolderContents() if x.portal_type == "Modulo"
58+
x for x in self.context.getFolderContents()
5959
]
6060
result["moduli_del_documento"] = []
6161
for brain in brain_moduli:

0 commit comments

Comments
 (0)