#9787: PasswordInput widget's max_length wrong output.
-----------------------+----------------------------------------------------
 Reporter:  patrick91  |       Owner:  nobody    
   Status:  new        |   Milestone:            
Component:  Forms      |     Version:  1.0       
 Keywords:             |       Stage:  Unreviewed
Has_patch:  0          |  
-----------------------+----------------------------------------------------
 Hi,
 when I use this code:

 '''#forms.py'''
 {{{
 class TestForm(forms.Form):
     check_password = forms.CharField(_('Password (verifica)'),
 widget=forms.PasswordInput)
 }}}
 '''#template.html'''
 {{{
 {{ form.as_table }}
 }}}
 I get this output:
 {{{
 <form action="." method="post">
 <table>
  <tr>
   <td>
    <label for="id_nick_name">Nickname</label>
   </td>
   <td>
    <input id="id_password" type="password" name="password"
 maxlength="&lt;django.utils.functional.__proxy__ object at
 0x2b5bb4d407d0&gt;" />
   </td>
  </tr>
 </table>
 }}}
 the part: '''maxlength="&lt;django.utils.functional.__proxy__ object at
 0x2b5bb4d407d0&gt;"''' seems strange, i don't know hot get the correct
 ouput.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9787>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to