UserProfile filtering breaks between Django 1.2.5 and 1.3
|Reported by:||bjorn@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.