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