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

Plugin loading fixes #5572

Merged
merged 7 commits into from
Sep 20, 2023
Merged

Conversation

SchrodingersGat
Copy link
Member

Fixes #5523

This patch fixes two bugs which seem specific to AppMixin plugins:

External Plugins Dir

Loading AppMixin plugins from external (custom) plugins dir did not work correctly - there was no mechanism available to add these plugins to INSTALLED_APPS. Some extra path checks fix this

Admin URLs

Admin integration breaks (as reported in #5523) due to changes in 3e37469

Bring the admin URLs up one level to fix this.

- URL patterns were causing custom app mixin plugins to fail reverse lookup in admin interface
- Brought admin URLs up one level
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed plugin Plugin ecosystem labels Sep 20, 2023
@SchrodingersGat SchrodingersGat added this to the 0.13.0 milestone Sep 20, 2023
@netlify
Copy link

netlify bot commented Sep 20, 2023

Deploy Preview for inventree canceled.

Name Link
🔨 Latest commit 9e9bbf4
🔍 Latest deploy log https://app.netlify.com/sites/inventree/deploys/650a62a998dd97000824c748

Copy link
Contributor

@matmair matmair left a comment

Choose a reason for hiding this comment

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

Lgtm

@SchrodingersGat SchrodingersGat merged commit 47f341d into inventree:master Sep 20, 2023
20 checks passed
@SchrodingersGat SchrodingersGat deleted the url-fix branch September 20, 2023 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed plugin Plugin ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin - admin.site.register() throws an error now
2 participants