Re: [Django] #11938: `to_field` does not function as expected.

2010-02-03 Thread Django
#11938: `to_field` does not function as expected.
---+
  Reporter:  dcramer   | Owner:  nobody  
Status:  closed| Milestone:  
 Component:  Database layer (models, ORM)  |   Version:  1.1 
Resolution:  duplicate |  Keywords:  to_field
 Stage:  Unreviewed| Has_patch:  0   
Needs_docs:  0 |   Needs_tests:  0   
Needs_better_patch:  0 |  
---+
Changes (by russellm):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => duplicate
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 This is a dupe of #11319, which is itself an amalgam of #10243 and #10785.

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #11938: `to_field` does not function as expected.

2009-09-23 Thread Django
#11938: `to_field` does not function as expected.
--+-
 Reporter:  dcramer   |   Owner:  nobody
   Status:  new   |   Milestone:
Component:  Database layer (models, ORM)  | Version:  1.1   
 Keywords:  to_field  |   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 In lookups involving a `ForeignKey`, or a `ManyToMany` intermediary table
 using a `to_field` they fail due to looking for the primary key, rather
 than the field specified by `to_field`.

 For example:

 {{{
 user = models.ForeignKey(User, to_field="username")
 # Fails
 SimpleModel.objects.get(user=self.user)
 }}}

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---