csrf_exempt for create_container

This commit is contained in:
Holger Sielaff
2025-09-25 08:48:52 +02:00
parent d10938d2d2
commit 8097893eee

View File

@@ -8,6 +8,7 @@ from django.db.models import Q
from django.forms import model_to_dict from django.forms import model_to_dict
from django.http import HttpResponse, HttpResponseForbidden from django.http import HttpResponse, HttpResponseForbidden
from django.shortcuts import get_object_or_404, redirect, render from django.shortcuts import get_object_or_404, redirect, render
from django.views.decorators.csrf import csrf_exempt
from django_proxmox_mikrotik.settings import ProxmoxConfig from django_proxmox_mikrotik.settings import ProxmoxConfig
from lib.decorators import readonly from lib.decorators import readonly
@@ -355,6 +356,7 @@ def delete_container(request, container_id):
}) })
@csrf_exempt
def create_container(request): def create_container(request):
user_profile = request.user.profile user_profile = request.user.profile