Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

models.py: Rule: Check content_object before accessing it #470

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

vincent-olivert-riera
Copy link
Contributor

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.

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.
@vincent-olivert-riera vincent-olivert-riera requested a review from a team as a code owner January 9, 2024 06:29
@kfdm kfdm merged commit 814e804 into master Jan 11, 2024
5 checks passed
@kfdm kfdm deleted the fix-error-when-deleting-projects-with-rules branch January 11, 2024 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants