This commit is contained in:
Ross
2022-04-13 22:58:31 +01:00
parent 94350182b6
commit 091bdfefbc
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -1042,7 +1042,9 @@ class CollectionView(LoginRequiredMixin, SingleTableMixin, FilterView):
def collection_detail(request, pk):
collection = get_object_or_404(CaseCollection, pk=pk)
return render(request, "atlas/collection_detail.html", {"collection": collection})
cases = collection.cases.all().order_by("casedetail__sort_order")
return render(request, "atlas/collection_detail.html", {"collection": collection, "cases": cases})
def collection_take(request, pk):