#5784: Include field name that causes validation error in CharField.to_python
------------------------------+---------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody                       
  Status:  new                |   Component:  Database wrapper             
 Version:  SVN                |    Keywords:  initial_data syncdb CharField
   Stage:  Unreviewed         |   Has_patch:  1                            
------------------------------+---------------------------------------------
 When importing using loaddata (in this case via
 fixtures/initial_data.json) an attempt to import null data into a field
 that doesn't allow null data has the unhelpful message:
 {{{
 Problem installing fixture '[snip]/initial_data.json': [u'This field
 cannot be null.']
 }}}

 When initial_data has is importing to lots of models/fields it would
 helpful to know which field is causing the problem:
 {{{
 Problem installing fixture '[snip]/initial_data.json': [u"The field
 'split' cannot be null."]
 }}}

 Trivial patch included ... I'm new to Django, so it's unclear to me how to
 snag model name as well( "Model.Field cannot be null" ). It is also
 unclear to me whether this message would be silly when raised in other
 areas of the application.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5784>
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