Closed Xinghan closed 12 years ago
Try to add initial data to form when it's initialized. To do that pass in initial data to form when call it.
RegistrationForm( initial={'username': 'Ding guanghao', 'email': 'example@example.com'} )
What does initial data do?
Try to add initial data to form when it's initialized. To do that pass in initial data to form when call it.
RegistrationForm( initial={'username': 'Ding guanghao', 'email': 'example@example.com'} )