Skip to content

adding reversion to Theme, Layer, AttributeInfo, and LookupInfo admins - #49

Open
rhodges wants to merge 1 commit into
mainfrom
reversion
Open

rhodges wants to merge 1 commit into
mainfrom
reversion

Conversation

@rhodges

@rhodges rhodges commented Oct 5, 2026

Copy link
Copy Markdown
Member

Ability to revert changes made to Theme, Layer, AttributeInfo, and LookupInfo objects in the Django admin.

@rhodges
rhodges requested review from paigewilliams and pollardld and a balanced review from Copilot October 5, 2026 23:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

reversion must be registered in INSTALLED_APPS so Django can start and create its required tables.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Adds Django admin revision history and rollback support for key layer-management models.

Changes:

  • Adds django-reversion.
  • Integrates VersionAdmin with four model admins.
File Description
requirements.txt Adds the reversion dependency.
layers/​admin.py Enables revision management for Theme, Layer, LookupInfo, and AttributeInfo.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread layers/admin.py
import os
from queryset_sequence import QuerySetSequence
import requests
from reversion.admin import VersionAdmin

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Addressed in madrona-portal PR. See Ecotrust/madrona-portal#69 .

@rhodges rhodges self-assigned this Oct 7, 2026
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