#2579: raw_id_admin with ManyToMany does not properly handle 'empty' 
raw_id_admin
fields
----------------------------------------------+-----------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  adrian                   
     Type:  defect                            |      Status:  new               
       
 Priority:  normal                            |   Milestone:                    
       
Component:  Core framework                    |     Version:  0.95              
       
 Severity:  normal                            |    Keywords:  raw_id_admin 
many_to_many
----------------------------------------------+-----------------------------
 Despite a definition of blank=True, null=True, I've observed fields in
 0.95 with raw_id_admin which do not allow said field to be 'empty'.
 
 The issue appears to be related to the fact that the empty is translated
 in code to ''; when the Relation manager attempts to search for these ids,
 it throws an exception.
 
 The solution to this problem is to detect if it's raw_id_admin, and
 defined 'empty', and skip the 'add relations' call.
 
 I have attached a patch which solves this problem.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2579>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to