aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/core/views.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-05-27 14:28:49 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-05-27 14:28:56 +0100
commit361718781e2ae4e65b38b55937788c18f314f715 (patch)
tree546dbca93fc3daf6a05c41defaf0e7bd738dd3bc /ctrack/core/views.py
parentca2272bca90fc1fb7dbd78a2458ae921d5ffa59e (diff)
stakeholder user redirected to stakeholder template page
Diffstat (limited to '')
-rw-r--r--ctrack/core/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ctrack/core/views.py b/ctrack/core/views.py
index 195b2f5..02f3db1 100644
--- a/ctrack/core/views.py
+++ b/ctrack/core/views.py
@@ -4,4 +4,7 @@ from django.shortcuts import render
@login_required
def home_page(request):
- return render(request, "pages/home.html")
+ if request.user.is_stakeholder():
+ return render(request, "pages/stakeholder_home.html")
+ else:
+ return render(request, "pages/home.html")