Skip to content

Commit

Permalink
Merge c686e8b into cf1f008
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 25, 2021
2 parents cf1f008 + c686e8b commit 78cd942
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tcms_github_marketplace/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pylint: disable=missing-permission-required
#
# Copyright (c) 2019-2020 Alexander Todorov <atodorov@MrSenko.com>
# Copyright (c) 2019-2021 Alexander Todorov <atodorov@MrSenko.com>
#
# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt

Expand All @@ -10,6 +10,7 @@
from django.conf import settings
from django.urls import reverse
from django.http import HttpResponse, HttpResponseRedirect
from django.views.decorators.csrf import csrf_exempt
from django.views.generic.base import View, TemplateView
from django.utils.decorators import method_decorator
from django.utils.translation import gettext_lazy as _
Expand All @@ -25,6 +26,7 @@
from tcms_github_marketplace.models import Purchase


@method_decorator(csrf_exempt, name='dispatch')
class PurchaseHook(View):
"""
Handles `marketplace_purchase` web hook as described at:
Expand Down Expand Up @@ -85,6 +87,7 @@ def post(self, request, *args, **kwargs): # pylint: disable=unused-argument
return HttpResponse('ok', content_type='text/plain')


@method_decorator(csrf_exempt, name='dispatch')
class FastSpringHook(View):
"""
Handles web hook events as described at:
Expand Down

0 comments on commit 78cd942

Please sign in to comment.