From f5dc274fd4e3d035ea101255c8e466c0fed7578c Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Thu, 4 Jul 2024 22:49:44 +0200 Subject: [PATCH] Explain --- projects/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/forms.py b/projects/forms.py index 173d65e..e4daf9c 100644 --- a/projects/forms.py +++ b/projects/forms.py @@ -95,6 +95,9 @@ def update(self, po, *, request): if not msgid_with_context: continue + # Better be safe than sorry -- do not modify the entries in + # self.entries, find the entry in the current version of the pofile + # instead. for entry in po: if entry.msgid_with_context == msgid_with_context: old = copy.deepcopy(entry)