#9938: ModelChoiceField validation throws OverflowError
---------------------------------+------------------------------------------
          Reporter:  bstpierre   |         Owner:  nobody
            Status:  closed      |     Milestone:        
         Component:  Forms       |       Version:  SVN   
        Resolution:  duplicate   |      Keywords:        
             Stage:  Unreviewed  |     Has_patch:  1     
        Needs_docs:  0           |   Needs_tests:  0     
Needs_better_patch:  0           |  
---------------------------------+------------------------------------------
Changes (by kmtracey):

  * status:  new => closed
  * resolution:  => duplicate

Comment:

 This is really the same problem as is noted in #9209.  The last patch
 attached there proposes using a bare except since it's quite hard (if not
 impossible) to figure out all the different exceptions that may be caused
 by incorrect user input in this case.  That patch also fixes up
 !ModelMultipleChoiceFields, which have the same issue with bad user input.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9938#comment:3>
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 [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