Opened 18 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: | 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 , 18 years ago
comment:2 by , 18 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:4 by , 18 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
looks valid, but are we still worried about Manipulators?
comment:5 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Development effort on oldforms has halted, so I'm marking this as a wontfix.
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