This commit is contained in:
Ross
2022-03-21 16:49:04 +00:00
parent 15aa29533b
commit 7577a031c1
4 changed files with 32 additions and 0 deletions
+12
View File
@@ -39,6 +39,7 @@ from .forms import (
)
from .models import (
Case,
CaseCollection,
Condition,
PathologicalProcess,
Presentation,
@@ -891,3 +892,14 @@ def categories_list(request):
# "condition": condition,
# },
)
def collection_index_view(request):
collections = CaseCollection.objects.all()
return render(request, "atlas/collection_index.html", {"collections": collections})
def collection_detail_view(request, pk):
collection = get_object_or_404(CaseCollection, pk)
return render(request, "atlas/collection_index.html", {"collection": collection})