mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Refactor Can*Mixin
This commit is contained in:
1 parent
642249e7fb
commit
81e11b4c33
4 files changed
+51
-64
No files matched your search
+2
-1
@@ -87,7 +87,8 @@ class PageCreateView(CanCreateMixin, CreateView):
|
||||
|
||||
def form_valid(self, form):
|
||||
form.instance.set_lock(self.request.user)
|
||||
return super(PageCreateView, self).form_valid(form)
|
||||
ret = super(PageCreateView, self).form_valid(form)
|
||||
return ret
|
||||
|
||||
class PagePropView(CanEditPropMixin, UpdateView):
|
||||
model = Page
|
||||
|
||||
Reference in new issue
Block a user