For the django admin, how do I add a field to the User model and have it editable in the admin?

后端 未结 5 1256
闹比i
闹比i 2021-02-04 10:42

I\'m trying to understand the django admin better and at the same time, I\'m trying to add one more field to the current user admin. In models.py I\'ve done

Use         


        
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 11:09

    I got the 'that is missing from the form' error, and discovered that it was due to my field being marked as 'editable=False' in the model.

提交回复
热议问题