diff options
Diffstat (limited to 'app/locations/views.py')
-rw-r--r-- | app/locations/views.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/locations/views.py b/app/locations/views.py index 48ecc07..a6d9ea1 100644 --- a/app/locations/views.py +++ b/app/locations/views.py @@ -9,7 +9,7 @@ from jrnl.models import Entry from projects.shortcuts import render_to_geojson from sightings.models import Sighting from utils.views import PaginatedListView -from .models import Country, Region, Route, Location, Walk +from .models import Country, Region, Route, Location, Track def map_list(request): context = { @@ -101,8 +101,8 @@ class LocationDetail(DetailView): return context -class WalkDetail(DetailView): - model = Walk +class TrackDetail(DetailView): + model = Track def get_context_data(self, **kwargs): context = super(WalkDetail, self).get_context_data(**kwargs) @@ -116,8 +116,8 @@ class WalkDetail(DetailView): ).order_by('ap_id', 'ap__apclass__kind').distinct("ap") return context -class WalkList(PaginatedListView): +class TrackList(PaginatedListView): """ Return list of Walks """ - model = Walk + model = Track |