#11866: non-null FK to a CharField primary key fails when key value is the empty
string, giving "[model.fk_col] may not be NULL"
------------------------------------------+---------------------------------
 Reporter:  andrewbadr                    |       Owner:  andrewbadr
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.1       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 Model A has a CharField primary_key. Model B has a ForeignKey field to
 model A. If an instance of A has a row with an empty-string in the primary
 key column, no B instance can point to it. Attempting to create such a B
 instance fails with "[model.fk_col] may not be NULL". Repro'd with PG and
 sqlite3.

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