mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Move core auth mixins to their own file
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user