On 2013-12-05, at 11:54 AM, Ricardo Kamada <ricardokam...@gmail.com> wrote:

> I have a model "Cliente" and in it a field "password".
> In forms.py file, I am using ModelForm, but put in the password field
> Password = forms.CharField (widget = forms.PasswordInput (render_value = 
> True))
> It turns out that the admin password field appears readable, and I do not 
> want that to happen.
> I tried to put in set_password. Models but did not succeed.
> Now if I put in the admin:
> form = FormCliente
> Displays the password field and confirm password type password.
> But I will not so I want to appear only the password hash.
> 
> http://pastebin.com/AQnWR0W3
> in line 19 does not generate the password hash, but the readable password

render_value=False seems to be helpful here.

Also, in my forms (copied from Mezzanine) there are two fields defined, 
"password1" and "password2", both with render_value=False, and then the actual 
password is set after validating the second against the first.

hth

                - Tom

> 
> Ricardo
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAJTdXTGzao5CaAfX9b%3Dyy_%2BG6LeEcSV1FA7Z11tALZ2WYR4XhQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Tom Lockhart
tlockhart1...@gmail.com



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/14458EFE-CD22-4FB9-B6D7-6C79DF196435%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

<<inline: T_Lockhart_791_email_sig.png>>

Reply via email to