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

Refactoring BaseInternaLinkBlock #46

Merged
merged 3 commits into from
Mar 11, 2025

Conversation

vossisboss
Copy link
Contributor

If there is a good reason to have both a BaseInternalLinkBlock and InternalLinkBlock, I am all ears. But it seems like this project as it currently stands doesn't really require the extra block for everything to function properly.

If there is a best practice reason for keeping both, then we should consider documenting it so people are aware of it and know what use cases having the separate blocks would be good for..

Copy link
Member

@laymonage laymonage left a comment

Choose a reason for hiding this comment

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

Makes sense to me. I also don't know why BaseInternalLinkBlock has abstract = True in its Meta class. It's not a known meta value for blocks, and we should remove it since we're consolidating the block as InternalLinkBlock.

@laymonage laymonage force-pushed the refactor-internal-link-block branch from 12010fe to c64efce Compare March 11, 2025 19:02
@laymonage laymonage merged commit c64efce into wagtail:main Mar 11, 2025
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