Add cache to station view
parent
98119d3da6
commit
b56cdfe1f8
|
@ -529,6 +529,7 @@ def stations_list(request):
|
||||||
{'stations': stations, 'form': form, 'antennas': antennas})
|
{'stations': stations, 'form': form, 'antennas': antennas})
|
||||||
|
|
||||||
|
|
||||||
|
@cache_page(settings.CACHE_TTL)
|
||||||
def station_view(request, id):
|
def station_view(request, id):
|
||||||
"""View for single station page."""
|
"""View for single station page."""
|
||||||
station = get_object_or_404(Station, id=id)
|
station = get_object_or_404(Station, id=id)
|
||||||
|
|
Loading…
Reference in New Issue