Skip to content

fix: disable periodic_task when reccurence is deactivated

Sandeep Dubey requested to merge DubeySandeep/recurrence_active into master

Description

This PR fixes the issue with deactivating Recurrence doesn't disable periodic tasks. (reported here)

Tickets:

Testing instruction

  • Go to the admin page and create a Recurrence model
  • Check for the existence of the PeriodicTask Model for the corresponding recurrence model
  • Go to the edit page of the newly created Recurrence model
  • Uncheck the "active" field of the newly created Recurrence model and click Save.
  • Expect the "enabled" field of the corresponding PeriodicTask model to be unchecked.
Edited by Sandeep Dubey

Merge request reports