Applied the modified RedirectView from the Mia core application to the accounting application.
This commit is contained in:
parent
54f6ad3d3b
commit
8770770b66
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
from django.urls import path, register_converter
|
from django.urls import path, register_converter
|
||||||
from django.views.decorators.http import require_GET
|
from django.views.decorators.http import require_GET
|
||||||
from django.views.generic import RedirectView
|
|
||||||
|
|
||||||
|
from mia_core.views import RedirectView
|
||||||
from . import converters, views
|
from . import converters, views
|
||||||
|
|
||||||
register_converter(converters.PeriodConverter, "period")
|
register_converter(converters.PeriodConverter, "period")
|
||||||
|
@ -36,12 +36,12 @@ from django.utils import timezone
|
|||||||
from django.utils.decorators import method_decorator
|
from django.utils.decorators import method_decorator
|
||||||
from django.utils.translation import gettext as _, gettext_noop
|
from django.utils.translation import gettext as _, gettext_noop
|
||||||
from django.views.decorators.http import require_GET, require_POST
|
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.period import Period
|
||||||
from mia_core.utils import Pagination, get_multi_lingual_search, \
|
from mia_core.utils import Pagination, get_multi_lingual_search, \
|
||||||
PaginationException
|
PaginationException
|
||||||
from mia_core.views import DeleteView, FormView
|
from mia_core.views import DeleteView, FormView, RedirectView
|
||||||
from . import utils
|
from . import utils
|
||||||
from .forms import AccountForm, TransactionForm, TransactionSortForm
|
from .forms import AccountForm, TransactionForm, TransactionSortForm
|
||||||
from .models import Record, Transaction, Account
|
from .models import Record, Transaction, Account
|
||||||
|
Loading…
Reference in New Issue
Block a user