How to make custom primary key in Django models

后端 未结 0 955
日久生厌
日久生厌 2021-02-04 10:55

I\'m building an app that show tables of data. The primary key that my client want is like this

Year-4digitinteger-3digitinteger

Instance:

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