Skip to content

Commit 1f8e564

Browse files
committed
fix: album ordering
1 parent f864156 commit 1f8e564

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bullet/gallery/views/album.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,4 @@ class AlbumListView(GalleryCompetitionMixin, ListView):
4141
template_name = "gallery/list.html"
4242

4343
def get_queryset(self):
44-
qs = Album.objects.filter(competition=self.competition)
45-
country = self.request.COUNTRY_CODE.upper()
46-
local = qs.filter(country=country)
47-
other = qs.exclude(country=country)
48-
return local.union(other)
44+
return Album.objects.filter(competition=self.competition)

0 commit comments

Comments
 (0)