From 8770770b66d6cbe146f987c6939fcfd146a9b586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 19 Aug 2020 10:04:27 +0800 Subject: [PATCH] Applied the modified RedirectView from the Mia core application to the accounting application. --- accounting/urls.py | 2 +- accounting/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/accounting/urls.py b/accounting/urls.py index f81c00a..d790d3a 100644 --- a/accounting/urls.py +++ b/accounting/urls.py @@ -21,8 +21,8 @@ from django.urls import path, register_converter from django.views.decorators.http import require_GET -from django.views.generic import RedirectView +from mia_core.views import RedirectView from . import converters, views register_converter(converters.PeriodConverter, "period") diff --git a/accounting/views.py b/accounting/views.py index 67fb27e..aea5fce 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -36,12 +36,12 @@ from django.utils import timezone from django.utils.decorators import method_decorator from django.utils.translation import gettext as _, gettext_noop from django.views.decorators.http import require_GET, require_POST -from django.views.generic import RedirectView, ListView, DetailView +from django.views.generic import ListView, DetailView from mia_core.period import Period from mia_core.utils import Pagination, get_multi_lingual_search, \ PaginationException -from mia_core.views import DeleteView, FormView +from mia_core.views import DeleteView, FormView, RedirectView from . import utils from .forms import AccountForm, TransactionForm, TransactionSortForm from .models import Record, Transaction, Account