Skip to content

remove data-manager Layer and Theme from admin#26

Merged
rhodges merged 1 commit into
mainfrom
develop
May 15, 2026
Merged

remove data-manager Layer and Theme from admin#26
rhodges merged 1 commit into
mainfrom
develop

Conversation

@rhodges
Copy link
Copy Markdown
Member

@rhodges rhodges commented May 15, 2026

Remove redundant data_manager models from django admin

@rhodges rhodges requested a review from Copilot May 15, 2026 23:51
@rhodges rhodges self-assigned this May 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes duplicate Theme and Layer model registrations from the Django admin that come from the legacy data_manager app, since mp-layers is replacing it but backward-compatible registrations still exist.

Changes:

  • Attempts to import Theme and Layer from data_manager.models and unregisters them from the admin site.
  • Wraps imports/unregister calls in broad try/except blocks to tolerate environments where data_manager is absent or models are already unregistered.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rhodges rhodges merged commit 883bfb9 into main May 15, 2026
1 check passed
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