Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def handle_no_permission(self):
- if not self.request.user.is_authenticated:
- return redirect(self.login_url
- else:
- return render(None, '403.html')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement