Skip to content
Snippets Groups Projects
Commit 25654db7 authored by Deaktivert bruker's avatar Deaktivert bruker
Browse files

fixup! greg.signals: allow access to protected member _changed_fields

parent dd8a01b4
No related branches found
No related tags found
1 merge request!8build: introduce pylint, pyproject.toml, and formatting lints
...@@ -75,9 +75,9 @@ def add_changed_fields_callback(sender, instance, raw, *args, **kwargs): ...@@ -75,9 +75,9 @@ def add_changed_fields_callback(sender, instance, raw, *args, **kwargs):
changed = instance.is_dirty() changed = instance.is_dirty()
if not changed: if not changed:
return return
instance._changed_fields = list( instance._changed_fields = list( # pylint: disable=protected-access
instance.get_dirty_fields().keys() instance.get_dirty_fields().keys()
) # pylint: disable=protected-access )
@receiver(models.signals.post_save, dispatch_uid="save_notification_callback") @receiver(models.signals.post_save, dispatch_uid="save_notification_callback")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment