Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
140: exclude datasets without geographic_location
  • Loading branch information
mortenwh committed Dec 17, 2020
commit 5dd4868de9f8c353fc597f660ece2251b05db85c
2 changes: 1 addition & 1 deletion geospaas/base_viewer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class IndexView(View):
@classmethod
def get_all_datasets(cls):
""" Retrieve all dataset(s) from the database"""
return Dataset.objects.order_by('time_coverage_start')
return Dataset.objects.order_by('time_coverage_start').exclude(geographic_location__isnull=True)

@classmethod
def get_filtered_datasets(cls, form):
Expand Down