[Fixed]-Use Django Reverse for multiple args

1👍

The reverse function returns paths (i.e. /admin/content/product/1), try changing your code to:

product_change_url = reverse("admin:content_product_change", args=[str(obj.id)])
return "<a href='%s'>%s</a>" % (product_change_url, obj.product_name)
👤César

Leave a comment