~sirodoht/mataroa

ff48ff74aa8d3b238151f9fc4c18d5ec1b9ce14a — Theodore Keloglou a month ago f617f41
add require post on epub export view
1 files changed, 2 insertions(+), 0 deletions(-)

M main/views_export.py
M main/views_export.py => main/views_export.py +2 -0
@@ 8,6 8,7 @@ from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.shortcuts import render
from django.views.decorators.http import require_POST

from main import models, util



@@ 289,6 290,7 @@ def _get_epub_chapter(post):
"""


@require_POST
@login_required
def export_epub(request):
    if request.method == "POST":