Skip to content
Snippets Groups Projects
Commit 10c798ed authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Fix: Allow POST method for api view. (Redmine issue: #7578)

parent 6e66ea24
No related branches found
No related tags found
No related merge requests found
......@@ -456,6 +456,7 @@ class DashboardView(HTMLMixin, AbstractDashboardView): # pylint: disable=locall
"""
View responsible for presenting reporting dashboard in the form of HTML page.
"""
methods = ['GET']
@classmethod
def get_view_name(cls):
......@@ -466,6 +467,7 @@ class APIDashboardView(AJAXMixin, AbstractDashboardView): # pylint: disable=loc
"""
View responsible for presenting reporting dashboard in the form of JSON document.
"""
methods = ['GET','POST']
@classmethod
def get_view_name(cls):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment