From 98bd857db39bd0f43938423c3842eec9864362e5 Mon Sep 17 00:00:00 2001 From: Mo Sohani Date: Fri, 20 Sep 2024 08:24:29 -0400 Subject: [PATCH] redirect to meta model --- tdrs-backend/tdpservice/data_files/admin/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tdrs-backend/tdpservice/data_files/admin/admin.py b/tdrs-backend/tdpservice/data_files/admin/admin.py index a74dfa717..8214b13a7 100644 --- a/tdrs-backend/tdpservice/data_files/admin/admin.py +++ b/tdrs-backend/tdpservice/data_files/admin/admin.py @@ -8,6 +8,7 @@ from django.conf import settings from django.utils.html import format_html from datetime import datetime, timedelta, timezone +from django.shortcuts import redirect DOMAIN = settings.FRONTEND_BASE_URL @@ -52,6 +53,7 @@ def reparse_cmd(self, request, queryset): % files.count(), messages.SUCCESS, ) + return redirect("/admin/search_indexes/reparsemeta/") def get_actions(self, request): """Return the actions."""