Opened 19 years ago

Closed 17 years ago

#2213 closed defect (wontfix)

when an AddManipulator returns with errors, the foreign key field chosen is not shown

Reported by: lawgon@… Owned by: nobody
Component: Validators Version:
Severity: major Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using AddManipulator on a model with a foreign key, when the form is returned with errors, the foreign key choice is not shown on the form although the view is aware of it.

Change History (5)

comment:1 by Kenneth Gonsalves, 19 years ago

to elaborate, if one has a select field, on errors, when the form is returned, the choice chosen in the select field is shown. But in the drop down list for a foreign key field, the choice is not shown - only the ------ is shown, although the manipulator remembers the item chosen

comment:2 by anonymous, 19 years ago

on investigation of django.forms.init.py, i find that the ForeignKey appears to be treated as a SelectField. The population of the data in the SelectField is restricted to 'choices' if defined. The case of foreign key is not covered. Now to try to write a patch for that!

comment:3 by anton@…, 18 years ago

Same problem occurs with ChangeManipulator too

comment:4 by Chris Beaven, 18 years ago

Triage Stage: UnreviewedDesign decision needed

looks valid, but are we still worried about Manipulators?

comment:5 by Russell Keith-Magee, 17 years ago

Resolution: wontfix
Status: newclosed

Development effort on oldforms has halted, so I'm marking this as a wontfix.

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