#16450: UserProfile filtering breaks between Django 1.2.5 and 1.3
---------------------+-------------------------------
 Reporter:  bjorn@…  |          Owner:  nobody
     Type:  Bug      |         Status:  new
Milestone:           |      Component:  Uncategorized
  Version:  1.3      |       Severity:  Normal
 Keywords:           |   Triage Stage:  Unreviewed
Has patch:  0        |  Easy pickings:  0
    UI/UX:  0        |
---------------------+-------------------------------
 I guess this will be closed as invalid, but here goes my best attempt.

 When upgrading from Django 1.2.5 to 1.3 the following code breaks:
 {{{
 users =
 self.users.filter(userprofile__public_profile=True).order_by('first_name')
 }}}

 Cannot resolve keyword 'userprofile' into field.

 UserProfile has a foregin key to User:

 {{{
 user = models.ForeignKey(User, unique=True)
 }}}

 Other foreignkey models are still valid keys so i figured it might have to
 do with the custom user profile feature.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16450>
Django <https://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