2011-03-14 55 views
1

django-registration使用auth User模型的形式,但我想使用,如何更改默認的django-registration模型中使用的形式?

class Person(User): 
    dob = models.DateField('Date of Birth', blank=True, null=True) 
    ssn = models.CharField(max_length=16, null=True, blank=True) 
    tag = models.ManyToManyField(PersonTags, related_name="tags") 
    parent = models.ForeignKey('self', null=True, blank=True, related_name='children') 

當用戶註冊,它應該去的人與用戶的機型,所以現在我怎麼能做到這一點的django-registration

請幫我和thanx提前:)

+1

在看看 - http://stackoverflow.com/questions/2601487/django-registration-django-profile-using-your-own-custom -form - 說明如何使用自定義後端自定義表單。 – JamesO 2011-03-14 09:37:40

+0

thanx james ... – Ahsan 2011-03-15 05:38:05

回答