Hi
Please don't use this post for support. See
https://docs.djangoproject.com/en/3.1/faq/help/
Thanks,
Adam
On Sun, 3 Jan 2021 at 16:38, AMINE ART wrote:
> Can get you every post if you fill it
> I comment it to get only the user posts
>
> class UserPostsListView(ListView):
> model = Post
> t
Can get you every post if you fill it
I comment it to get only the user posts
class UserPostsListView(ListView):
model = Post
template_name = 'posts/pages/index.html'
context_object_name = 'posts'
#That line can ruine everything
#ordering = ['-date_posted']
paginate_by = 1
def get_query_set(self)