📜  required_fields = [] - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:07.270000             🧑  作者: Mango

代码示例1
REQUIRED_FIELDS = ['name', 'username', 'email', 'password']

Specifies the fields to be asked in console when you run following command:-
                   "python manage.py createsuperuser"

Helpful in creating custom User Models in django.