add option to include/exclude areas to UI

This commit is contained in:
Laura Klünder 2016-12-19 22:52:09 +01:00
parent 1c10ce443a
commit 91b9bc92b8
7 changed files with 70 additions and 23 deletions

View file

@ -53,7 +53,6 @@ class Route:
@staticmethod
def describe_point(point):
print(point.arealocations)
locations = sorted(AreaLocation.objects.filter(location_type__in=('room', 'level', 'area'),
name__in=point.arealocations),
key=AreaLocation.get_sort_key, reverse=True)