24 lines
560 B
Python
24 lines
560 B
Python
"""
|
|
Author: Michel Peltriaux
|
|
Created on: 14.12.25
|
|
|
|
"""
|
|
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
from django.utils.decorators import method_decorator
|
|
from django.views import View
|
|
|
|
from konova.decorators import uuid_required, any_group_check
|
|
|
|
|
|
class AbstractDetailView(LoginRequiredMixin, View):
|
|
_TEMPLATE = None
|
|
|
|
class Meta:
|
|
abstract = True
|
|
|
|
@method_decorator(uuid_required)
|
|
@method_decorator(any_group_check)
|
|
def dispatch(self, request, *args, **kwargs):
|
|
return super().dispatch(request, *args, **kwargs)
|
|
|