blob: 02f3db1bd68cb68422e5b40ec032269b9f99cd2c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
@login_required
def home_page(request):
if request.user.is_stakeholder():
return render(request, "pages/stakeholder_home.html")
else:
return render(request, "pages/home.html")
|