#11716: Various methods in django.db.models.fields don't wrap ValueErrors and 
allow
them to escape
---------------------------------------------------+------------------------
          Reporter:  Leo                           |         Owner:  Leo
            Status:  assigned                      |     Milestone:     
         Component:  Database layer (models, ORM)  |       Version:  1.1
        Resolution:                                |      Keywords:     
             Stage:  Unreviewed                    |     Has_patch:  1  
        Needs_docs:  0                             |   Needs_tests:  0  
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by Leo):

 Ah, I see what you're asking now. Doing `get()` takes you through the same
 code path. This patch changes the behavior to be consistent with how it
 would be if you tried to do `get(some_boolean_field='foo')` and the
 documentation is silent on what the proper response should be if the
 argument is incorrect.

 `ValidationError` comes from `django.core.exceptions` so it seems like its
 fair game to be used here (and is used for the other fields). If one of
 the committers feels its needed, I can try to add the behavior to the docs
 in the appropriate places.

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