http://groups.google.com/group/django-users/browse_thread/thread/7dde22931b48ef20
こんな感じみたい。
class PasswordForm(forms.Form):
username = forms.CharField(max_length = 32)
password = forms.CharField(max_length = 128, label='Current Password', widget=forms.PasswordInput(render_value=False))
oldpassword = forms.CharField(max_length = 128, label='New Password', widget=forms.PasswordInput(render_value=False))
oldpassword2 = forms.CharField(max_length = 128, label='New Password(again)', widget=forms.PasswordInput(render_value=False))
def input_passwd(request):
form = PasswordForm()
return render_to_response("input_passwd.html",
{'form': form})
0 件のコメント:
コメントを投稿