KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have two models, Design and Profile . Profile is hooked up in settings.py as the profile to be used with the User model. So I can access it via user.get_profile() . And each Design instance has an author property that is a ForeignKey to User. So, when I'm any view, I can get the screenname (a property of Profile) by: user.get_profile().screenname But what is the syntax to SEARCH BY FILTER for this property? What I currently have: designs = Design.objects.filter(author__userprofile__screenname__icontains=w) This doesn't work. Thoughts?
Tags (comma-separated)
Save Edits
Cancel