Skip to content

Commit

Permalink
sort the LPN by "Begin Date" decreasingly on site detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
htaolimno committed Mar 3, 2020
1 parent e8d5933 commit 480abc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataloaderinterface/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_context_data(self, **kwargs):
context['is_site_owner'] = self.request.user == self.object.django_user
context['tsa_url'] = settings.TSA_URL

context['leafpacks'] = LeafPack.objects.filter(site_registration=context['site'].pk)
context['leafpacks'] = LeafPack.objects.filter(site_registration=context['site'].pk).order_by('-placement_date')

try:
context["hydroshare_account"] = self.request.user.hydroshare_account
Expand Down

0 comments on commit 480abc3

Please sign in to comment.