API: Validate input locales (Z#23182219) (#4833)

This commit is contained in:
Raphael Michel
2025-02-12 12:50:13 +01:00
committed by GitHub
parent 943193e8e0
commit 7afe2e66d7
5 changed files with 26 additions and 1 deletions

View File

@@ -370,7 +370,7 @@ class WaitingListShredder(BaseDataShredder):
def generate_files(self) -> List[Tuple[str, str, str]]:
yield 'waiting-list.json', 'application/json', json.dumps([
WaitingListSerializer(wle).data
WaitingListSerializer(wle, context={"event": self.event}).data
for wle in self.event.waitinglistentries.all()
], indent=4)