Applied the modified RedirectView from the Mia core application to the accounting application.

This commit is contained in:
依瑪貓 2020-08-19 10:04:27 +08:00
parent 54f6ad3d3b
commit 8770770b66
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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