Set updated date on list when item is added
This commit is contained in:
parent
9b949d9845
commit
f7b0a282a7
2 changed files with 6 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Lists(View):
|
|||
item_count=Count("listitem", filter=Q(listitem__approved=True))
|
||||
).filter(
|
||||
item_count__gt=0
|
||||
).distinct().all()
|
||||
).order_by("-updated_date").distinct().all()
|
||||
|
||||
lists = privacy_filter(
|
||||
request.user, lists, privacy_levels=["public", "followers"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue