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
class ListDisplayClickthroughMixin(object): | |
list_display_fk_clickthrough = [] | |
list_display_m2m_clickthrough = [] | |
def __init__(self, *args, **kwargs): | |
super(ListDisplayClickthroughMixin, self).__init__(*args, **kwargs) | |
for field in self.list_display_fk_clickthrough or []: | |
self.bind_field(field, fk_link_fnc) | |
for field in self.list_display_m2m_clickthrough or []: |