From 4edc96df5b29c6f5aea4cb44c862588c00d4e38f Mon Sep 17 00:00:00 2001 From: Neil Muller Date: Mon, 19 Aug 2024 18:26:08 +0200 Subject: [PATCH] Update wafer/talks/views.py Appy feedback from PR Co-authored-by: Stefano Rivera --- wafer/talks/views.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wafer/talks/views.py b/wafer/talks/views.py index cbbdb6fc..72d7e00d 100644 --- a/wafer/talks/views.py +++ b/wafer/talks/views.py @@ -77,10 +77,7 @@ def get_context_data(self, **kwargs): context["languages"] = Talk.LANGUAGES context["tracks"] = Track.objects.count() > 0 context["see_all"] = Talk.can_view_all(self.request.user) - if self.request.GET.get('sort'): - context['sort'] = self.request.GET.get('sort') - else: - context['sort'] = 'default' + context['sort'] = self.request.GET.get('sort', 'default') return context