few small fixes
This commit is contained in:
@@ -50,7 +50,9 @@
|
||||
<button hx-get="{% url 'atlas:case_order_dicom' pk=case.pk %}"
|
||||
title="order dicom by slice location"
|
||||
hx-target="this"
|
||||
hx-swap="outerHTML">
|
||||
hx-swap="outerHTML"
|
||||
hx-confirm="This will reorder all case series based upon slice location"
|
||||
>
|
||||
Order all series dicoms by slice location
|
||||
</button>
|
||||
</details>
|
||||
|
||||
+4
-2
@@ -338,13 +338,15 @@ def finding_detail(request, pk):
|
||||
|
||||
|
||||
@login_required
|
||||
@user_is_author_or_atlas_editor
|
||||
def author_detail(request, pk):
|
||||
# logging.debug(Author.objects.all())
|
||||
# author = get_object_or_404(Author, pk=pk)
|
||||
author = User.objects.get(pk=pk)
|
||||
|
||||
atlas = Case.objects.filter(author=pk)
|
||||
if request.user.pk == pk:
|
||||
atlas = Case.objects.filter(author=pk)
|
||||
else:
|
||||
atlas = Case.objects.filter(author=pk, open_access=True)
|
||||
|
||||
return render(
|
||||
request, "atlas/category_detail.html", {"category": author, "atlas": atlas}
|
||||
|
||||
+2
-1
@@ -216,4 +216,5 @@ def get_image_hash(img, dataset=None, hash_type="blake3", direct_pixel_data=True
|
||||
print("BAD")
|
||||
return hash, False
|
||||
|
||||
return hash, is_dicom
|
||||
return hash, is_dicom
|
||||
|
||||
|
||||
Reference in New Issue
Block a user