From 68cf985671b6b775e8286c5bba7c79e89e5072a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 6 Jul 2020 21:36:31 +0800 Subject: [PATCH] Changed the decorator from @require_http_methods to @require_GET in the accounting module --- accounting/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accounting/views.py b/accounting/views.py index d11654c..321ac29 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -24,7 +24,7 @@ from django.http import HttpResponseRedirect, HttpResponse from django.urls import reverse from django.utils import dateformat, timezone 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.utils import PeriodParser, Pagination, \ @@ -33,7 +33,7 @@ from mia import settings from mia_core.utils import UrlBuilder -@require_http_methods(["GET"]) +@require_GET def home(request): """The accounting home page. @@ -44,7 +44,7 @@ def home(request): return HttpResponseRedirect(reverse("accounting:cash.home")) -@require_http_methods(["GET"]) +@require_GET def cash_home(request): """The accounting cash report home page.