7和python 2.7。我想在django註冊中添加額外的字段。我試圖用我的模型這樣的擴展: class Seller(models.Model):
user = models.ForeignKey(User, unique=True)
name = models.CharField(max_length=25)
phone_number = models.BigIntegerFi
我使用Django Django的,所以我的Registe形式如下 class RegisterForm(forms.ModelForm):
class Meta:
model = User
fields = ('username', 'email', 'password',)
widgets = {
'password': forms.