This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.urls import reverse | |
from django.utils.html import format_html | |
class ListLinksMixin(object): | |
""" | |
Support for list_links attribute. Items in list_links must also be in list_display | |
Usage to make 'fieldTwo' a link: | |
list_display = ('fieldOne', 'fieldTwo',) | |
list_links = ('fieldTwo',) |