On filtre pour les users non connectés
This commit is contained in:
parent
47c8dba260
commit
f63dc2db55
1 changed files with 1 additions and 1 deletions
|
@ -108,4 +108,4 @@ class NotArchivedMixin:
|
||||||
if user.is_authenticated:
|
if user.is_authenticated:
|
||||||
return qs.filter(Q(archived=False, visible=True) | Q(created_by=user))
|
return qs.filter(Q(archived=False, visible=True) | Q(created_by=user))
|
||||||
|
|
||||||
return qs.filter(archived=False)
|
return qs.filter(archived=False, visible=True)
|
||||||
|
|
Loading…
Reference in a new issue