Move core auth mixins to their own file

This commit is contained in:
imperosol
2025-01-10 21:37:12 +01:00
parent cba915c34d
commit 0c01ad1770
34 changed files with 274 additions and 235 deletions

View File

@ -35,13 +35,14 @@ from django.views.generic import (
UpdateView,
)
from core.models import Notification, User
from core.views import (
from core.auth.mixins import (
CanCreateMixin,
CanEditPropMixin,
DetailFormView,
CanViewMixin,
FormerSubscriberMixin,
)
from core.models import Notification, User
from core.views import DetailFormView
from pedagogy.forms import (
UVCommentForm,
UVCommentModerationForm,
@ -50,8 +51,6 @@ from pedagogy.forms import (
)
from pedagogy.models import UV, UVComment, UVCommentReport
# Acutal views
class UVDetailFormView(CanViewMixin, DetailFormView):
"""Display every comment of an UV and detailed infos about it.