Skip to content

Commit

Permalink
Add missing docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
JackMorganNZ committed May 18, 2018
1 parent 0cf433a commit 3a0fd7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pikau/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ class MilestoneList(LoginRequiredMixin, generic.ListView):
context_object_name = "milestones"

def get_queryset(self, **kwargs):
"""Get queryset of all milestones.
Returns:
Queryset of ordered Milestone objects.
"""
return Milestone.objects.order_by("date")

def get_context_data(self, **kwargs):
Expand Down

0 comments on commit 3a0fd7f

Please sign in to comment.