Opened 9 years ago

Closed 7 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: UI/UX:

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 Changed 9 years ago by lawgon

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 Changed 9 years ago by anonymous

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 Changed 8 years ago by anton@…

Same problem occurs with ChangeManipulator too

comment:4 Changed 8 years ago by SmileyChris

  • Triage Stage changed from Unreviewed to Design decision needed

looks valid, but are we still worried about Manipulators?

comment:5 Changed 7 years ago by russellm

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

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