From 1306f0bcfef640bddad5c28eeabe023dcba20cee Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 11 Mar 2026 16:10:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(backend)=20expose=20`is=5Factive`=20f?= =?UTF-8?q?ield=20for=20Application=20in=20Django=20admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add minimal admin support to allow administrators to mark an application account as inactive if it becomes rogue or compromised. This capability was missing when the application concept was initially introduced in the backend. --- CHANGELOG.md | 3 ++- src/backend/core/admin.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de4573ff..418c25f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to - ✨(helm) support celery with our Django backend #1124 - ✨(helm) support ingress for custom background image #1124 - ✨(backend) add authenticated user rate throttling on request-entry #1129 +- ✨(backend) expose `is_active` field for Application in Django admin #1133 ### Changed @@ -23,7 +24,7 @@ and this project adheres to - ♿(frontend) improve ui and aria labels for help article links #1108 - 🌐(frontend) improve German translation #1125 - 🔨(python-env) migrate meet main app to UV #1120 -- ♻️(backend) align Application model field with `is_active` convention +- ♻️(backend) align Application model field with `is_active` convention #1133 ### Fixed diff --git a/src/backend/core/admin.py b/src/backend/core/admin.py index 4c5af379..c8374782 100644 --- a/src/backend/core/admin.py +++ b/src/backend/core/admin.py @@ -308,7 +308,7 @@ class ApplicationAdmin(admin.ModelAdmin): form = ApplicationAdminForm - list_display = ("id", "name", "client_id", "get_scopes_display") + list_display = ("id", "name", "client_id", "get_scopes_display", "is_active") fields = [ "name", "id", @@ -317,6 +317,7 @@ class ApplicationAdmin(admin.ModelAdmin): "scopes", "client_id", "client_secret", + "is_active", ] readonly_fields = ["id", "created_at", "updated_at"] inlines = [ApplicationDomainInline]