Mercurial > piecrust2
changeset 928:41db689d36b6
serve: Fix post editing when the post has assets.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 01 Oct 2017 20:38:43 -0700 |
parents | 175d80cf75d7 |
children | cebeedfa034f |
files | piecrust/admin/views/edit.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/admin/views/edit.py Sun Oct 01 20:38:19 2017 -0700 +++ b/piecrust/admin/views/edit.py Sun Oct 01 20:38:43 2017 -0700 @@ -45,8 +45,8 @@ assetor = Assetor(page) assets_data = [] - for i, n in enumerate(assetor._getAssetNames()): - assets_data.append({'name': n, 'url': assetor[i]}) + for n in assetor._getAssetNames(): + assets_data.append({'name': n, 'url': assetor[n]}) data['assets'] = assets_data data['has_scm'] = (g.site.scm is not None)