In Django, how to rename user model?

前端 未结 0 394
日久生厌
日久生厌 2021-01-03 10:37

I trying to rename my user model CustomUser => User

Here what I\'ve done:

  1. Rename Python class and all references
  2. makemigrations

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