From 76020a3fa3b90ea58d22574317f79b3e56a91e87 Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 2 Apr 2022 22:38:55 +0100 Subject: [PATCH] . --- atlas/models.py | 2 +- atlas/tables.py | 2 +- atlas/urls.py | 2 +- atlas/views.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/atlas/models.py b/atlas/models.py index 773c2320..5b0296c8 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -628,7 +628,7 @@ class CaseCollection(models.Model): ) def get_absolute_url(self): - return reverse("atlas:collection_detail_view", kwargs={"pk": self.pk}) + return reverse("atlas:collection_detail", kwargs={"pk": self.pk}) def __str__(self) -> str: return self.name diff --git a/atlas/tables.py b/atlas/tables.py index 82a7cf9f..c64b0027 100755 --- a/atlas/tables.py +++ b/atlas/tables.py @@ -319,7 +319,7 @@ class CaseCollectionTable(tables.Table): "atlas:collection_update", text="Edit", args=[A("pk")], orderable=False ) view = tables.LinkColumn( - "atlas:collection_view", text="View", args=[A("pk")], orderable=False + "atlas:collection_detail", text="View", args=[A("pk")], orderable=False ) #clone = tables.LinkColumn( # "atlas:case_clone", text="Clone", args=[A("pk")], orderable=False diff --git a/atlas/urls.py b/atlas/urls.py index f8bcf72a..da7ea781 100755 --- a/atlas/urls.py +++ b/atlas/urls.py @@ -17,7 +17,7 @@ urlpatterns = [ path("collection/create", views.CaseCollectionCreate.as_view(), name="collection_create"), path("collection//delete", views.CaseCollectionDelete.as_view(), name="collection_delete"), path("collection//update", views.CaseCollectionUpdate.as_view(), name="collection_update"), - path("collection/", views.collection_detail_view, name="collection_detail_view"), + path("collection/", views.collection_detail, name="collection_detail"), path("collection//take//", views.collection_take_overview, name="collection_take_overview"), path("collection//", views.collection_case_view, name="collection_case_view"), path("collection///take//", views.collection_case_view_take, name="collection_case_view_take"), diff --git a/atlas/views.py b/atlas/views.py index dddb6991..3c85985b 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -1057,11 +1057,11 @@ class CollectionView(LoginRequiredMixin, SingleTableMixin, FilterView): filterset_class = CaseCollectionFilter -def collection_detail_view(request, pk): +def collection_detail(request, pk): collection = get_object_or_404(CaseCollection, pk=pk) return render( - request, "atlas/collection_detail_view.html", {"collection": collection} + request, "atlas/collection_detail.html", {"collection": collection} ) def collection_take_overview(request, pk, cid, passcode):