enter code here class Client(models.Model):
enter code here name =
models.CharField(max_length=100,
verbose_name="Client name")
enter code here description =
models.TextField(verbose_name="Client
say")
enter code here image =
models.TextField(upload_to="clients",
default="default.png")
enter code here def __str__(self):
enter code here return self.name
我得到一个类型错误:init()得到一个意外的关键字参数“upload\u to”
暂无答案!
目前还没有任何答案,快来回答吧!