Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1205 closed defect (invalid)

PasswordField for secret input is missing and not easily self-madeable.

Reported by: Henning Hasemann Owned by: Adrian Holovaty
Component: Metasystem Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There doesnt seem to be a thing like a PasswordField, or?
I found a formfield.PasswordField, but when I try to derive from CharField like this:

class PasswordField(meta.CharField):

def get_manipulator_field_objs(self):

return [formfields.PasswordField]

and want to use the resulting class, manage.py throws:

File "/usr/lib/python2.3/site-packages/django/core/management.py", line 75, in get_sql_create

col_type = db.DATA_TYPES[data_type]

KeyError: 'PasswordField'

Change History (2)

comment:1 by Adrian Holovaty, 18 years ago

Resolution: invalid
Status: newclosed

Add this to your PasswordField:

    def get_internal_type(self):
        return 'CharField'

comment:2 by Adrian Holovaty, 18 years ago

milestone: Version 0.91

Milestone Version 0.91 deleted

Note: See TracTickets for help on using tickets.
Back to Top