academon/api/views/urls.py
Kumi c04d9410e9
Preparation for DataTables
More sidebar items
Restructuring
2022-09-16 15:18:04 +00:00

9 lines
No EOL
351 B
Python

from django.views import View
from django.http import JsonResponse
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
class VesselsDataTableURLView(LoginRequiredMixin, View):
def get(self, request, *args, **kwargs):
return JsonResponse(reverse_lazy("core:admin_vessels_datatable"), safe=False)