if request.method == u'POST': form = FooForm(request.POST, instance=Foo) form.fields['fieldName'].widget=PasswordInput() if form.is_valid(): ......... else: form = FooForm(instance=Foo) form.fields['fieldName'].widget=PasswordInput()
0 件のコメント:
コメントを投稿