add templatetag to get list of known tiles (#49643)

This commit is contained in:
Frédéric Péters 2020-12-21 11:41:12 +01:00
parent d9f2edd994
commit aa72687db8
1 changed files with 5 additions and 0 deletions

View File

@ -838,3 +838,8 @@ def airquality_hack(cell, request):
cell.id = None
cell.save()
return cell
@register.simple_tag
def get_known_tile_types():
return list(settings.JSON_CELL_TYPES.keys())