.u
This commit is contained in:
+28
-2
@@ -141,8 +141,8 @@ def series_detail(request, pk, finding_pk=None):
|
||||
|
||||
@login_required
|
||||
@user_is_author_or_atlas_series_checker_or_atlas_marker
|
||||
def condition_detail(request, pk, finding_pk=None):
|
||||
condition = get_object_or_404(Series, pk=pk)
|
||||
def condition_detail(request, pk):
|
||||
condition = get_object_or_404(Condition, pk=pk)
|
||||
|
||||
# logging.debug(atlas.subspecialty.first().name.all())
|
||||
return render(
|
||||
@@ -153,7 +153,33 @@ def condition_detail(request, pk, finding_pk=None):
|
||||
},
|
||||
)
|
||||
|
||||
@login_required
|
||||
@user_is_author_or_atlas_series_checker_or_atlas_marker
|
||||
def structure_detail(request, pk):
|
||||
structure = get_object_or_404(Structure, pk=pk)
|
||||
|
||||
# logging.debug(atlas.subspecialty.first().name.all())
|
||||
return render(
|
||||
request,
|
||||
"atlas/structure_detail.html",
|
||||
{
|
||||
"structure": structure,
|
||||
},
|
||||
)
|
||||
|
||||
@login_required
|
||||
@user_is_author_or_atlas_series_checker_or_atlas_marker
|
||||
def finding_detail(request, pk):
|
||||
finding = get_object_or_404(Finding, pk=pk)
|
||||
|
||||
# logging.debug(atlas.subspecialty.first().name.all())
|
||||
return render(
|
||||
request,
|
||||
"atlas/finding_detail.html",
|
||||
{
|
||||
"finding": finding,
|
||||
},
|
||||
)
|
||||
@login_required
|
||||
@user_is_author_or_atlas_checker
|
||||
def author_detail(request, pk):
|
||||
|
||||
Reference in New Issue
Block a user