nanterre: corrige l'exclusion des fiches actives récemments (#28080)

This commit is contained in:
Benjamin Dauvergne 2018-11-19 21:30:25 +01:00
parent 243e02d795
commit 778ed3f32d
1 changed files with 3 additions and 3 deletions

View File

@ -46,9 +46,9 @@ class Inactivity(object):
def exclude_newer_than_threshold(self, qs, threshold):
return qs.exclude(
created__created__gte=threshold,
modified__created__gte=threshold,
log__timestamp__gte=threshold)
Q(created__created__gte=threshold) |
Q(modified__created__gte=threshold) |
Q(log__timestamp__gte=threshold))
@property
def query_no_federation(self):