Opened 18 years ago
Closed 18 years ago
#5407 closed (fixed)
raw_id ForeignKey field behaves like a ManyToManyField
| Reported by: | jkocherhans | Owned by: | xian |
|---|---|---|---|
| Component: | contrib.admin | Version: | newforms-admin |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Using the raw_id popup when the field is already populated results in each selected if being added with a comma. As a hint, this has to do with the field having a vRawIdAdminField class, which RelatedObjectLookup.js hooks on to. We should probably have 2 separate widgets, one for ForeignKey fields, and one for ManyToManyFields. Currently, they use the same raw_id widget.
Attachments (2)
Change History (6)
comment:1 by , 18 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 18 years ago
| Owner: | changed from to |
|---|
comment:3 by , 18 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
by , 18 years ago
| Attachment: | many2manywidget.diff added |
|---|
by , 18 years ago
| Attachment: | many2manywidget.2.diff added |
|---|
comment:4 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [6310]) newforms-admin: Fixed #5407. Javascript problems with raw_id fields. Thanks Christian Metts.