Django: How to get an object with a file name

前端 未结 0 922
梦谈多话
梦谈多话 2021-02-05 03:27

Let\'s say I have a model with a FileField:

class Foo(models.Model):

    file = models.FileField(
        upload_to=\'files\'
    )

What would b

相关标签:
回答
  • 消灭零回复
提交回复
热议问题