您的资源应如下所示:
class FooResource(ModelResource): img = fields.FileField(attribute="img", null=True, blank=True) class meta: queryset = Foo.objects.all()
本
attribute应与该领域的典范。如文档中所述:
ApiField。 属性
欢迎分享,转载请注明来源:内存溢出
您的资源应如下所示:
class FooResource(ModelResource): img = fields.FileField(attribute="img", null=True, blank=True) class meta: queryset = Foo.objects.all()
本
attribute应与该领域的典范。如文档中所述:
ApiField。 属性
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)