Browse Source

Update main.py

pull/6/head
Mathias Markl 7 years ago
committed by GitHub
parent
commit
bc3b5f1663
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      muk_fields_lobject/controllers/main.py

4
muk_fields_lobject/controllers/main.py

@ -54,7 +54,9 @@ class LargeObjectController(http.Controller):
elif id and model in request.env.registry:
obj = request.env[model].browse(int(id))
if not obj or not obj.exists() or field not in obj:
_logger.info(str(not obj), str(not obj.exists()), str(field not in obj))
_logger.info(str(not obj))
_logger.info(str(not obj.exists()))
_logger.info(str(field not in obj)))
return request.not_found()
try:
last_update = obj['__last_update']

Loading…
Cancel
Save