Merge lp:~mhall119/loco-team-portal/fix-510198 into lp:loco-team-portal
Proposed by
Michael Hall
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~mhall119/loco-team-portal/fix-510198 |
Merge into: | lp:loco-team-portal |
Prerequisite: | lp:~mhall119/loco-team-portal/team-events-rss |
Diff against target: |
182 lines (+20/-20) 3 files modified
loco_directory/events/views.py (+15/-15) loco_directory/teams/views.py (+3/-3) loco_directory/venues/views.py (+2/-2) |
To merge this branch: | bzr merge lp:~mhall119/loco-team-portal/fix-510198 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
LoCo Team Portal Developers | Pending | ||
Review via email: mp+17760@code.launchpad.net |
To post a comment you must log in.
For some reason, the translation's proxy object for the user.message_set message isn't being converted into a character string before being bound to the query. Wrapping all messages we pass to user.message_ set.create in unicode() will pass the translated text as a unicode string rather than a proxy object.
The only drawback I can see from this is that we force the loading of the translation when we're passing it to message_set, but it would always get loaded very shortly thereafter anyway, so I don't see any real harm in doing this.