diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-21 23:44:03 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-21 23:44:03 -0400 |
commit | f54df0094b31987c90791a82413b9c7bf9cc4ae0 (patch) | |
tree | da545749a3424b37ef3a158ef3e571fffc551bde | |
parent | 54271be4a73c04411515cd3d8a09434ac22dde3e (diff) | |
download | askbot-f54df0094b31987c90791a82413b9c7bf9cc4ae0.tar.gz askbot-f54df0094b31987c90791a82413b9c7bf9cc4ae0.tar.bz2 askbot-f54df0094b31987c90791a82413b9c7bf9cc4ae0.zip |
fixed three more bugs preventing post/reply/edit by email work
-rw-r--r-- | askbot/lamson_handlers.py | 4 | ||||
-rw-r--r-- | askbot/models/reply_by_email.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/askbot/lamson_handlers.py b/askbot/lamson_handlers.py index 5fb758a7..f121af06 100644 --- a/askbot/lamson_handlers.py +++ b/askbot/lamson_handlers.py @@ -99,8 +99,8 @@ def get_parts(message): parts = list() - if message.body() - parts.append('body', message.body()) + if message.body(): + parts.append(('body', message.body())) for part in message.walk(): part_type = get_part_type(part) diff --git a/askbot/models/reply_by_email.py b/askbot/models/reply_by_email.py index bdf11021..a8769307 100644 --- a/askbot/models/reply_by_email.py +++ b/askbot/models/reply_by_email.py @@ -3,7 +3,7 @@ import random import string from django.db import models from django.contrib.auth.models import User -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext as _ from askbot.models.post import Post from askbot.models.base import BaseQuerySetManager from askbot.conf import settings as askbot_settings |