From 204188542dc8ed4405429e05c79cc651328afa0e Mon Sep 17 00:00:00 2001 From: sandstromviktor Date: Wed, 6 Mar 2024 15:07:49 +0100 Subject: [PATCH] Removing extra admin command --- projects/admin.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/projects/admin.py b/projects/admin.py index 1bb1480d4..0485ccb20 100644 --- a/projects/admin.py +++ b/projects/admin.py @@ -28,19 +28,12 @@ class ProjectAdmin(admin.ModelAdmin): list_display = ("name", "owner", "status", "updated_at", "project_template") list_filter = ["owner", "status", "project_template"] - actions = ["update_app_limits", "update_project_template"] + actions = ["update_app_limits"] @admin.action(description="Reset app limits") def update_app_limits(self, request, queryset): queryset.update(apps_per_project=settings.APPS_PER_PROJECT_LIMIT) - # 2024-02-16 - This was added as a temporary method to simplify adding a project template to a project - # Should be removed if all projects have a linked template. - @admin.action(description="Change project template to default") - def update_project_template(self, request, queryset): - project_template = ProjectTemplate.objects.get(slug="blank") - queryset.update(project_template=project_template) - @admin.register(Flavor) class FlavorAdmin(admin.ModelAdmin):