Steven,thanks but I've already created a custom manipulator. Your approach is noted as I find it very neat. Will use it next time.chrisOn 5/27/06,
Steven Armstrong <[EMAIL PROTECTED]> wrote:
On 05/27/06 13:23, Christian Schneider wrote:> Hi all,>> can I specify that a certain model field should be
On 05/27/06 13:23, Christian Schneider wrote:
> Hi all,
>
> can I specify that a certain model field should be displayed as type="password" /> in the UI?
>
> I think I saw once how to do it but can't find it anymore.
>
> chris
>
Hi Chris
The following works for me:
class PasswordField(mode
Ah, now I get it, I have to write a custom manipulator to use the field, haven't I?Oh well ...On 5/27/06, Kenneth Gonsalves <
[EMAIL PROTECTED]> wrote:On Sat, May 27, 2006 4:59 pm, spacedman said:
>> just use PasswordField() in your model.>> Might be a recent introduction. Its literally a two-liner
On Sat, May 27, 2006 5:47 pm, Kenneth Gonsalves said:
>
>
> On Sat, May 27, 2006 4:59 pm, spacedman said:
>>
>> just use PasswordField() in your model.
>>
>> Might be a recent introduction. Its literally a two-liner in
>> django.forms:
>>
>> class PasswordField(TextField):
>> input_
On Sat, May 27, 2006 4:59 pm, spacedman said:
>
> just use PasswordField() in your model.
>
> Might be a recent introduction. Its literally a two-liner in
> django.forms:
>
> class PasswordField(TextField):
> input_type = "password"
thats new
--
regards
kg
--~--~-~--~
Except it doesn't work.I now have the following model:class User(models.Model): passwords_match = validators.AlwaysMatchesOtherField("password", "Passwords don't match.")
shortname = models.CharField(maxlength=200) firstname = models.CharField(maxlength=200) lastname = models.Char
Barry,thanks, it's not in the documentation, yet.I actually tried it but syncdb didn't run correctly, so I changed it along with a mis-spelled EMailField. Should really fix errors one by one.chris
On 5/27/06, spacedman <[EMAIL PROTECTED]> wrote:
just use PasswordField() in your model.Might be a rec
just use PasswordField() in your model.
Might be a recent introduction. Its literally a two-liner in
django.forms:
class PasswordField(TextField):
input_type = "password"
http://code.djangoproject.com/browser/django/trunk/django/forms/__init__.py
Barry
--~--~-~--~
Hi all,can I specify that a certain model field should be displayed as in the UI?I think I saw once how to do it but can't find it anymore.chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group. T
9 matches
Mail list logo