我正在使用它在我的 Django 管理面板中显示图像,但是有什么方法可以显示多个图像:
def product_Image(self):
"""Method to return store image for admin panel"""
return '<img src="/images/%s" height="150" width="150"/>' % self.image_paths
product_Image.allow_tags = True
但是如果self.image_paths
包含图像路径列表:["full/1182_Garishma1.jpg","full/K-Yukta-A.jpg"]
那么我如何在 django 管理面板中显示所有图像...