Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invalidate queryset caches of Task and Job model on User delete
Task and Job models have many to one relationship with User model on assignee and reviewer fields. And on deleting the parent model, these fields are set to NULL. However due to an open issue in django-cacheops package, the related querysets are not invalidated upon deletion of parent model. Refer - Suor/django-cacheops#348. So we have to manually invalidate the cached querysets.
- Loading branch information