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

greg.signals: allow access to protected member _changed_fields

Fixes: GREG-16
parent f474776c
No related branches found
No related tags found
1 merge request!8build: introduce pylint, pyproject.toml, and formatting lints
......@@ -75,7 +75,9 @@ def add_changed_fields_callback(sender, instance, raw, *args, **kwargs):
changed = instance.is_dirty()
if not changed:
return
instance._changed_fields = list(instance.get_dirty_fields().keys())
instance._changed_fields = list(
instance.get_dirty_fields().keys()
) # pylint: disable=protected-access
@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