diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-27 14:28:49 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-27 14:28:56 +0100 |
commit | 361718781e2ae4e65b38b55937788c18f314f715 (patch) | |
tree | 546dbca93fc3daf6a05c41defaf0e7bd738dd3bc /ctrack/core/views.py | |
parent | ca2272bca90fc1fb7dbd78a2458ae921d5ffa59e (diff) |
stakeholder user redirected to stakeholder template page
Diffstat (limited to '')
-rw-r--r-- | ctrack/core/views.py | 5 |
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") |