#5407: raw_id ForeignKey field behaves like a ManyToManyField
------------------------------+---------------------------------------------
   Reporter:  jkocherhans     |                Owner:  nobody         
     Status:  new             |            Component:  Admin interface
    Version:  newforms-admin  |           Resolution:                 
   Keywords:                  |                Stage:  Unreviewed     
  Has_patch:  0               |           Needs_docs:  0              
Needs_tests:  0               |   Needs_better_patch:  0              
------------------------------+---------------------------------------------
Changes (by jkocherhans):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Old description:

> 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
> {{{ManyToManyField}}s. Currently, they use the same raw_id widget.

New description:

 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
 {{{ManyToManyField}}}s. Currently, they use the same raw_id widget.

Comment:

 

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5407#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to