Begin implementing settings page
This commit is contained in:
parent
b8f5d5a1cc
commit
5c67a3a707
|
@ -2,7 +2,15 @@ import uuid
|
||||||
|
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from django.views import View
|
from django.views import View
|
||||||
|
from django.http import HttpResponseBadRequest
|
||||||
|
|
||||||
|
class OpenSettings(View):
|
||||||
|
allowed_types = ["modal", "widget", "window"]
|
||||||
|
|
||||||
|
async def get(self, request, type):
|
||||||
|
if type not in self.allowed_types:
|
||||||
|
return HttpResponseBadRequest
|
||||||
|
#template_name =
|
||||||
|
|
||||||
class DemoModal(View):
|
class DemoModal(View):
|
||||||
template_name = "modals/modal.html"
|
template_name = "modals/modal.html"
|
Loading…
Reference in New Issue