Skip to content
Snippets Groups Projects
Commit 38d796e9 authored by Martin Mareš's avatar Martin Mareš
Browse files

Školy: Fixup 60395123

parent a0c22cb4
Branches
No related tags found
No related merge requests found
...@@ -357,7 +357,8 @@ def plan_single_change(old: Optional[ProtoSchool], new: Optional[ProtoSchool]) - ...@@ -357,7 +357,8 @@ def plan_single_change(old: Optional[ProtoSchool], new: Optional[ProtoSchool]) -
if getattr(old, field) != getattr(new, field): if getattr(old, field) != getattr(new, field):
changes.append((field, getattr(old, field), getattr(new, field))) changes.append((field, getattr(old, field), getattr(new, field)))
if set(changes) <= {'is_zs', 'is_ss'}: changed_fields = {c[0] for c in changes}
if set(changed_fields) <= {'is_zs', 'is_ss'}:
return None return None
act = create_action(old, ActionType.EDIT, 'změny') act = create_action(old, ActionType.EDIT, 'změny')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment