Refactor Can*Mixin

This commit is contained in:
Skia
2016-12-14 18:05:19 +01:00
parent 642249e7fb
commit 81e11b4c33
4 changed files with 51 additions and 64 deletions

View File

@ -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