Wednesday, December 21, 2016

How to display user's photo that i follow in post's list in Django

In a  post list I've shown only the users posts that I follow but I'm not able to display their photo. 

Here is my Profile model, extending Django User model




































Here is my Post model:













































I want to show the photo of the user as shown below.
What would be the right queryset to display that.
Any help would be apriciated.







--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/436cd055-2ec0-4116-a391-ab377e03c1ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment