开发者

Django admin add page, how to, autofill with latest data(0002)+1=0003

开发者 https://www.devze.com 2023-01-02 16:19 出处:网络
When adding a new data, can we automatically add a dynamic default data where the value is previous recorded data(000开发者_JAVA技巧2)+1=0003Not reliably. What will happen if multiple people access it

When adding a new data, can we automatically add a dynamic default data where the value is previous recorded data(000开发者_JAVA技巧2)+1=0003


Not reliably. What will happen if multiple people access it at the same time is that data will be overwritten. Let the PK serve its purpose, behind the scenes.

0

精彩评论

暂无评论...
验证码 换一张
取 消