Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#1205 closed defect (invalid)

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

Reported by: Henning Hasemann Owned by: adrian
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: UI/UX:

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 Changed 10 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

Add this to your PasswordField:

    def get_internal_type(self):
        return 'CharField'

comment:2 Changed 9 years ago by adrian

  • milestone Version 0.91 deleted

Milestone Version 0.91 deleted

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