Skip to content

Commit

Permalink
revert changes to worong file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andraz Vrhovec committed Dec 15, 2020
1 parent 42eca49 commit fc36aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sledilnik/posts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Meta:
cache = SimpleCache(timeout=60, public=True)

def get_object_list(self, request):
return super().get_object_list(request).filter(Q(published=True) & (Q(published=True)) & (Q(valid_unitl__gte=timezone.now()) | Q(valid_until=None))).orderBy('-order')
return super().get_object_list(request).filter(published=True, created__lte=timezone.now())

def dehydrate(self, bundle):
lang = bundle.request.GET.get("lang")
Expand Down

0 comments on commit fc36aa2

Please sign in to comment.