1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-01 20:10:55 +01:00

A bugfix, again, for the same piece of code (sorry)

forget to name the argument
This commit is contained in:
Yann 2016-12-07 16:00:11 +01:00
commit 548320e6d3

View file

@ -47,7 +47,8 @@ def admin_update(request):
leo = target_leo.get_from_uid(datas['lodel_id']) leo = target_leo.get_from_uid(datas['lodel_id'])
if leo is None: if leo is None:
raise HttpException(404, raise HttpException(404,
'No %s with id %s' % (target_leo.__name__, datas['lodel_id'])) custom = 'No %s with id %s' % (
target_leo.__name__, datas['lodel_id']))
try: try:
leo.update( leo.update(
{ f:datas[f] for f in datas if f not in ('classname', 'lodel_id')}) { f:datas[f] for f in datas if f not in ('classname', 'lodel_id')})