remove whitespaces in state json serialization
This commit is contained in:
parent
8813f00e95
commit
4c32a22aac
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ def map_index(request, origin=None, destination=None, level=None, x=None, y=None
|
|||
ctx = {
|
||||
'bounds': json.dumps(Source.max_bounds(), separators=(',', ':')),
|
||||
'levels': json.dumps(tuple((level.pk, level.short_label) for level in levels), separators=(',', ':')),
|
||||
'state': json.dumps(state),
|
||||
'state': json.dumps(state, separators=(',', ':')),
|
||||
}
|
||||
response = render(request, 'site/map.html', ctx)
|
||||
set_tile_access_cookie(request, response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue