Moved notable caves to settings.py, link to a script to fix permissions

This commit is contained in:
expo
2015-06-21 15:08:09 +01:00
parent 4771f52b20
commit 7aed3d3b30
3 changed files with 22 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ def caveCmp(x, y):
def caveindex(request):
caves = Cave.objects.all()
notablecavehrefs = [ "161", "204", "258", "76", "107" ] # could detect notability by trips and notability of people who have been down them
notablecavehrefs = settings.NOTABLECAVESHREFS
notablecaves = [Cave.objects.get(kataster_number=kataster_number) for kataster_number in notablecavehrefs ]
caves1623 = list(Cave.objects.filter(area__short_name = "1623"))
caves1626 = list(Cave.objects.filter(area__short_name = "1626"))