Fixes #19744: Add accessor for is_loaded in TemplateColumn #1322

Closed
opened 2026-04-05 23:23:30 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 9/5/2025

Fixes: #19744

Summary
Fix sorting for the Active column on Admin → Plugins.

Change
Add accessor=tables.A('is_loaded') to the Active TemplateColumn so django‑tables2 orders by the boolean value rather than the rendered HTML.

Result
Clicking Active now correctly toggles:

  • Ascending: inactive → active
  • Descending: active → inactive
*Originally created by @pheus on 9/5/2025* ### Fixes: #19744 **Summary** Fix sorting for the **Active** column on **Admin → Plugins**. **Change** Add `accessor=tables.A('is_loaded')` to the Active `TemplateColumn` so django‑tables2 orders by the boolean value rather than the rendered HTML. **Result** Clicking **Active** now correctly toggles: - **Ascending:** inactive → active - **Descending:** active → inactive
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1322