16149 add (optional) obj hyperlink to script list table (#16271)

* 16149 add (optional) obj hyperlink to script list table

* 16149 add (optional) obj hyperlink to script list table

* 16149 review feedback

* 16149 review changes
This commit is contained in:
Arthur Hanson
2024-06-21 07:04:52 -07:00
committed by GitHub
parent dda0b0bbd1
commit 85fd232614
5 changed files with 30 additions and 7 deletions

View File

@@ -500,6 +500,8 @@ class BaseScript:
'time': timezone.now().isoformat(),
'status': level,
'message': str(message),
'obj': str(obj) if obj else None,
'url': obj.get_absolute_url() if hasattr(obj, 'get_absolute_url') else None,
})
# Record to the system log