Commit a9118721 authored by fred's avatar fred

don't include disabled nonstop zones

parent 2ea2ed94
......@@ -5,7 +5,7 @@ from .models import Track
def get_nonstop_zones():
from emissions.models import Nonstop
return [(x.id, x.title) for x in Nonstop.objects.all()]
return [(x.id, x.title) for x in Nonstop.objects.all() if x.start != x.end]
def get_optional_nonstop_zones():
return [('', '')] + get_nonstop_zones()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment