Don't show if readonly

This commit is contained in:
zandercymatics 2024-06-12 12:46:27 -06:00
parent 49089cd1b0
commit 32c5a5a325
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -174,7 +174,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% endif %}
</span>
</div>
{% elif field.field.name == "investigator" and not original_object.investigator %}
{% elif field.field.name == "investigator" and not field.is_readonly and not original_object.investigator %}
<div class="flex-container">
<label aria-label="Assign yourself as the investigator"></label>
<button id="investigator__assign_self"