fix: disable periodic_task when reccurence is deactivated
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