Get current id on model save Django

前端 未结 0 417
囚心锁ツ
囚心锁ツ 2020-12-09 15:26

I my Django app contains a model for saving pictures, I would like Django to create a folder for the pictures based on the id of the record. I am trying to set the upload_to

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