網路論壇
登入
網路論壇
Django users
會話群組
關於
提供意見
說明
upgrading django 1.11 warning list
瀏覽次數:12 次
跳到第一則未讀訊息
pablochud
未讀,
2017年7月25日 上午8:55:24
2017/7/25
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:Django users
Hi!
It showed me warning related to 'on_delete' as required arg for ForeignKey in migration files. is it safty to change migration file manually or is there alternative way to bypass warning?
Tim Graham
未讀,
2017年7月25日 下午3:14:09
2017/7/25
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:Django users
Yes, it's safe to add that to migrations.
https://docs.djangoproject.com/en/dev/releases/1.9/#foreignkey-and-onetoonefield-on-delete-argument
回覆所有人
回覆作者
轉寄
0 則新訊息