debugging
This commit is contained in:
@@ -9,7 +9,6 @@ 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
|
||||||
@@ -357,7 +356,6 @@ def delete_container(request, container_id):
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@csrf_exempt
|
|
||||||
def create_container(request):
|
def create_container(request):
|
||||||
try:
|
try:
|
||||||
user_profile = request.user.profile
|
user_profile = request.user.profile
|
||||||
@@ -366,7 +364,7 @@ def create_container(request):
|
|||||||
user_profile = None
|
user_profile = None
|
||||||
|
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
logging.info(f"POST id {request.POST}")
|
logging.info(f"POST is {request.POST}")
|
||||||
# Get task_uuid from form
|
# Get task_uuid from form
|
||||||
task_uuid = request.POST.get('task_uuid')
|
task_uuid = request.POST.get('task_uuid')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user