aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/organisations/views.py')
-rw-r--r--ctrack/organisations/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py
index eb264ca..7171fab 100644
--- a/ctrack/organisations/views.py
+++ b/ctrack/organisations/views.py
@@ -28,6 +28,11 @@ class PersonListView(LoginRequiredMixin, PermissionRequiredMixin, ListView):
permission_required = "organisations.view_person"
+def person_detail(request, person_id):
+ p = get_object_or_404(Person, pk=person_id)
+ return render(request, "organisations/person_detail.html", {"person": p})
+
+
class OrganisationCreate(LoginRequiredMixin, PermissionRequiredMixin, CreateView):
model = Organisation
template_name = "organisations/org_create_formset.html"