S
S
sortfact3332020-11-12 20:16:45
Django
sortfact333, 2020-11-12 20:16:45

How can I prevent the same posts from being re-displayed?

I have this filter

Article.objects.filter(Q(connect_id=user_id) | Q(comment_article__user_id=user_id))

But he displays the same record several times, how can I forbid doing this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-11-12
@sortfact333

https://docs.djangoproject.com/en/3.1/ref/models/q...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question