.
This commit is contained in:
@@ -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})
|
||||
Reference in New Issue
Block a user