This commit is contained in:
@@ -8,7 +8,9 @@ class UniversalModelAdmin(DjangoQLSearchMixin,ImportExportModelAdmin,ExtraButton
|
||||
djangoql_completion_enabled_by_default = True
|
||||
|
||||
#Add search fields if you want to have the toggle on/off
|
||||
object = "obj.url"
|
||||
# example:
|
||||
# search_fields = ['season', 'episode', 'url', 'seen']
|
||||
|
||||
|
||||
def clickable_links(self, obj):
|
||||
return format_html('<a href="{}">{}</a>', obj.url,obj.url)
|
||||
|
||||
Reference in New Issue
Block a user