#8746: Data entered in raw_id_fields needs better checking
-------------------------------------------+--------------------------------
          Reporter:  kmtracey              |         Owner:  nobody  
            Status:  new                   |     Milestone:  post-1.0
         Component:  django.contrib.admin  |       Version:  SVN     
        Resolution:                        |      Keywords:          
             Stage:  Unreviewed            |     Has_patch:  0       
        Needs_docs:  0                     |   Needs_tests:  0       
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by jfw):

 I had a similar issue with raw_id_fields: if users type into the field,
 sometimes they'll leave extra commas or spaces.  Extra spaces are fine,
 though should be stripped--extra commas makes the query die by trying to
 convert " " or "" to an int.  Attached is a patch to at least fix that.  I
 agree that it should have better checking as to whether or not the values
 are valid for the particular key, but I'm not sure (yet) how to do that
 without assuming that the key is always an integer.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8746#comment:5>
Django <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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to