On ne garde que les éléments représentatifs dans la vue des tags
This commit is contained in:
parent
56ae9a06e9
commit
cf6128155b
@ -2565,6 +2565,12 @@ def view_tag(request, t, past=False):
|
||||
else:
|
||||
qs = qs.filter(start_day__gte=now).order_by("start_day", "start_time")
|
||||
|
||||
qs = qs.filter(
|
||||
Q(other_versions__isnull=True)
|
||||
| Q(other_versions__representative=F("pk"))
|
||||
| Q(other_versions__representative__isnull=True)
|
||||
)
|
||||
|
||||
paginator = Paginator(qs, 10)
|
||||
page = request.GET.get("page")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user