我正在尝试使用ForeignKey作为required_field在django中创建自定义用户模型。 我的经理如下:
(array([1,2,4]),)
尝试通过manage.py使用createsuperuser时,发生以下异常
var ONE = ["a1","b1","c1","d1"];
var TWO = ["a2","b2","c2","d2"];
function second(p,l) {
if (p === "ONE") {
return ONE[l];
}
if (p === "TWO") {
return TWO[l];
}
}
second("ONE",0); // output "a1"
State类存在于account.models中,该模块称为account
我不知道该如何创建用户,因为需要State实例。