super basic working example

This commit is contained in:
vabene1111
2021-01-21 20:54:55 +01:00
parent 6992bf83aa
commit 098f88e0b8
7 changed files with 22 additions and 12 deletions

View File

@ -152,7 +152,7 @@ class OwnerRequiredMixin(object):
_('You are not logged in and therefore cannot view this page!')
)
return HttpResponseRedirect(
reverse_lazy('login') + '?next=' + request.path
reverse_lazy('account_login') + '?next=' + request.path
)
else:
if not is_object_owner(request.user, self.get_object()):