Changed the decorator from @require_http_methods to @require_GET in the accounting module
This commit is contained in:
parent
218ae35b8d
commit
68cf985671
@ -24,7 +24,7 @@ from django.http import HttpResponseRedirect, HttpResponse
|
|||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils import dateformat, timezone
|
from django.utils import dateformat, timezone
|
||||||
from django.views import generic
|
from django.views import generic
|
||||||
from django.views.decorators.http import require_http_methods
|
from django.views.decorators.http import require_GET
|
||||||
|
|
||||||
from accounting.models import Record
|
from accounting.models import Record
|
||||||
from accounting.utils import PeriodParser, Pagination, \
|
from accounting.utils import PeriodParser, Pagination, \
|
||||||
@ -33,7 +33,7 @@ from mia import settings
|
|||||||
from mia_core.utils import UrlBuilder
|
from mia_core.utils import UrlBuilder
|
||||||
|
|
||||||
|
|
||||||
@require_http_methods(["GET"])
|
@require_GET
|
||||||
def home(request):
|
def home(request):
|
||||||
"""The accounting home page.
|
"""The accounting home page.
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ def home(request):
|
|||||||
return HttpResponseRedirect(reverse("accounting:cash.home"))
|
return HttpResponseRedirect(reverse("accounting:cash.home"))
|
||||||
|
|
||||||
|
|
||||||
@require_http_methods(["GET"])
|
@require_GET
|
||||||
def cash_home(request):
|
def cash_home(request):
|
||||||
"""The accounting cash report home page.
|
"""The accounting cash report home page.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user