Enhance case size rendering and update form field attributes for better UI integration

This commit is contained in:
Ross
2026-05-28 23:10:27 +01:00
parent c1005712e0
commit d74cfe73e0
3 changed files with 40 additions and 3 deletions
+6 -1
View File
@@ -160,7 +160,12 @@ class CaseTable(SelectionTable):
return mark_safe(", ".join(links))
return "No collections"
def render_case_size(self, value):
def render_case_size(self, value, record):
if value is None:
try:
value = record.get_total_series_images_size()
except Exception:
value = None
if value is None:
return "-"
return filesizeformat(value)