clickable links almost everywhere
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from django.contrib import admin
|
||||
from django.utils.html import format_html
|
||||
from import_export.admin import ImportExportModelAdmin
|
||||
from .models import streamingData
|
||||
from .utils import full_testing
|
||||
@@ -30,6 +31,9 @@ def check(modeladmin, request, queryset):
|
||||
|
||||
@admin.register(streamingData)
|
||||
class streamingAdmin(ImportExportModelAdmin):
|
||||
list_display = ['url','result','status']
|
||||
list_display = ['clickable_links','result','status']
|
||||
fields = ['url']
|
||||
actions = [check]
|
||||
actions = [check]
|
||||
|
||||
def clickable_links(self, obj):
|
||||
return format_html('<a href="{}">{}</a>', obj.url,obj.url)
|
||||
Reference in New Issue
Block a user