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提前:)
在看看 - http://stackoverflow.com/questions/2601487/django-registration-django-profile-using-your-own-custom -form - 说明如何使用自定义后端自定义表单。 – JamesO 2011-03-14 09:37:40
thanx james ... – Ahsan 2011-03-15 05:38:05