From 1c6a9fdcc97881d1b70e4d206dbedf675ec790ed Mon Sep 17 00:00:00 2001 From: Artur Galyamov Date: Tue, 20 Dec 2022 08:42:30 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BD=D0=B0=20CSRF=20#17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms/views.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cms/views.py b/cms/views.py index 9ae4f7d..853657e 100644 --- a/cms/views.py +++ b/cms/views.py @@ -4,15 +4,12 @@ from json import JSONEncoder import requests from django.http import HttpRequest from django.shortcuts import render -from django.utils.decorators import method_decorator from django.views import View -from django.views.decorators.csrf import csrf_exempt from cms.forms import ArticleForm from cms.models import Article -@method_decorator(csrf_exempt, name='dispatch') class ArticleView(View): def _promote_to_telegram(self, article: Article): bot_token = os.getenv('TELEGRAM_BOT_TOKEN')