change ordering in NewsList view
This commit is contained in:
parent
1747525f0f
commit
e2767af57d
|
|
@ -27,7 +27,7 @@ class NewsList(NewsViewMixin, JWTListAPIView):
|
||||||
return News.objects.annotate_localized_fields(locale=self.request.locale)\
|
return News.objects.annotate_localized_fields(locale=self.request.locale)\
|
||||||
.published()\
|
.published()\
|
||||||
.by_country_code(code=self.request.country_code)\
|
.by_country_code(code=self.request.country_code)\
|
||||||
.order_by('-created')
|
.order_by('-is_highlighted', '-created')
|
||||||
|
|
||||||
|
|
||||||
class NewsCreate(generics.CreateAPIView):
|
class NewsCreate(generics.CreateAPIView):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user