Skip to content

Commit

Permalink
Explain
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jul 4, 2024
1 parent 1302512 commit f5dc274
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f5dc274

Please sign in to comment.