Skip to content
Snippets Groups Projects
Commit 0f285996 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Merge branch 'bugfix/role-singals' into 'master'

Fix bug in signals for roles

See merge request !147
parents beef72dc a4ac4414
No related branches found
No related tags found
1 merge request!147Fix bug in signals for roles
Pipeline #100418 passed
......@@ -133,7 +133,7 @@ def save_notification_callback(sender, instance, created, *args, **kwargs):
if not isinstance(instance, SUPPORTED_MODELS):
return
# Queue future notifications on start and end date for roles
if isinstance(instance, Role):
if isinstance(instance, Role) and hasattr(instance, "_changed_fields"):
if (
"start_date" in instance._changed_fields # pylint: disable=protected-access
and instance.start_date
......
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