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

🐛 [#2284] Do not show selected categories in plugin if disabled #1127

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

stevenbal
Copy link
Contributor

@stevenbal stevenbal force-pushed the fix/2284-selected-categories-visible-if-disabled branch from f76e545 to 18ab2f3 Compare April 2, 2024 13:45
Comment on lines +126 to +131
if app_config := apphook_pool.get_apphook(hook_class.__name__).app_config:
# attach it to the page for convenience
if config_args is None:
config_args = dict()
config_args["namespace"] = hook_class.app_name
p.app_config = app_config.objects.get_or_create(**config_args)
Copy link
Contributor

Choose a reason for hiding this comment

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

Cooool. Didn't know about the apphook_pool. Could be something for the hacky stuff in open_inwoner/cms/utils/page_display.py

@stevenbal stevenbal merged commit acca0dc into develop Apr 4, 2024
15 checks passed
@stevenbal stevenbal deleted the fix/2284-selected-categories-visible-if-disabled branch April 4, 2024 08:06
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.

3 participants