Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models.py: Rule: Check content_object before accessing it
We have noticed that deleting projects that contain rules throw an error than can be seen on user's side as an "Internal Error!" page. This occurs because the rule's "content_object.name" is trying to be accessed after the project has been deleted, therefore "content_object" is None and does not contain a "name" member.
- Loading branch information