diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-04-25 14:16:17 +0200 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-04-25 14:31:29 +0200 |
commit | 5ae0cbaa551ca1457bb9b84ccad72836db1bf5fc (patch) | |
tree | 9b40dbe8c4f9be2ab96636eb8394ab5d8da4e2b4 /mediagoblin/edit | |
parent | c47be4b8bad385772c9926d2219f347628f60045 (diff) | |
download | mediagoblin-5ae0cbaa551ca1457bb9b84ccad72836db1bf5fc.tar.lz mediagoblin-5ae0cbaa551ca1457bb9b84ccad72836db1bf5fc.tar.xz mediagoblin-5ae0cbaa551ca1457bb9b84ccad72836db1bf5fc.zip |
No lazy_* needed here; Add ReallyLazyProxy.__repr__.
One should use lazy_* only if you have a good reason.
This one found by our unit tests!
For example add_message adds the message to the session,
the session needs to be serialized (with json) and well,
LazyProxy is not serializable.
To aid in debugging, gave our ReallyLazyProxy a __repr__.
Diffstat (limited to 'mediagoblin/edit')
-rw-r--r-- | mediagoblin/edit/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index b0d8dd5d..34b7aaca 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -29,7 +29,7 @@ from mediagoblin.decorators import (require_active_login, active_user_from_url, get_media_entry_by_id, user_may_alter_collection, get_user_collection) from mediagoblin.tools.response import render_to_response, redirect -from mediagoblin.tools.translate import lazy_pass_to_ugettext as _ +from mediagoblin.tools.translate import pass_to_ugettext as _ from mediagoblin.tools.text import ( convert_to_tag_list_of_dicts, media_tags_as_string) from mediagoblin.tools.url import slugify |