Django 1.5: UserCreationForm & Custom Auth Model

前端 未结 2 1705
天命终不由人
天命终不由人 2020-12-05 20:46

I\'m using Django 1.5 & Python 3.2.3.

I\'ve got a custom Auth setup, which uses an email address instead of a username. There\'s no username def

2条回答
  •  感动是毒
    2020-12-05 21:23

    You need to create your form from sctratch, it should not extend the UserCreationForm. The UserCreationForm have a username field explicitly defined in it as well as some other fields. You can look at it here.

提交回复
热议问题