Skip to content

Commit

Permalink
Merge pull request #247 from MBARIMike/main
Browse files Browse the repository at this point in the history
Order Missions, Expeditions, and Compilations by name in the table views
  • Loading branch information
MBARIMike authored Jun 3, 2024
2 parents e001565 + 57e6cc4 commit 4ee1513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smdb/smdb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_context_data(self, **kwargs):

class CompilationTableView(FilterView, SingleTableView):
table_class = CompilationTable
queryset = Compilation.objects.all()
queryset = Compilation.objects.all().order_by("name")
filterset_class = CompilationFilter
formhelper_class = CompilationFilterFormHelper

Expand Down Expand Up @@ -159,7 +159,7 @@ def get_context_data(self, *args, **kwargs):

class ExpeditionTableView(FilterView, SingleTableView):
table_class = ExpeditionTable
queryset = Expedition.objects.all()
queryset = Expedition.objects.all().order_by("name")
filterset_class = ExpeditionFilter
filterhelper_class = ExpeditionFilterFormHelper

Expand Down Expand Up @@ -194,7 +194,7 @@ def get_context_data(self, *args, **kwargs):

class MissionTableView(FilterView, SingleTableView):
table_class = MissionTable
queryset = Mission.objects.all()
queryset = Mission.objects.all().order_by("name")
filterset_class = MissionFilter
formhelper_class = MissionFilterFormHelper

Expand Down

0 comments on commit 4ee1513

Please sign in to comment.