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

Do not edit moderated questions #6364

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

akatsoulas
Copy link
Collaborator

No description provided.

Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc

@@ -392,6 +392,14 @@ def is_solved(self):
def is_offtopic(self):
return config.OFFTOPIC_TAG_NAME in [t.name for t in self.my_tags]

@property
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit (since it's only used once so far). Maybe use @cached_property (from functools) instead, since this performs a DB query?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great idea!

@akatsoulas akatsoulas force-pushed the lock-moderated-question branch from 513445b to 2b5dc20 Compare November 21, 2024 09:36
@akatsoulas akatsoulas merged commit 878177e into mozilla:main Nov 21, 2024
2 checks passed
@akatsoulas akatsoulas deleted the lock-moderated-question branch November 21, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants