Inside admin I want the list_display of a model to include the get_absolute_url and be clickable. Currently it just shows /x/ (x being the ID). Any quick fixes?
Model:
def get_absolute_url(self):
return "/%i/" % self.id
Admin:
list_display = ('name', 'get_absolute_url')
1 Answer