summaryrefslogtreecommitdiffstats
path: root/askbot/models/post.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/models/post.py')
-rw-r--r--askbot/models/post.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/models/post.py b/askbot/models/post.py
index daf7757b..a0fdc4ff 100644
--- a/askbot/models/post.py
+++ b/askbot/models/post.py
@@ -1743,8 +1743,8 @@ class PostRevision(models.Model):
return False
#if sent by email to group and group does not want moderation
- if self.by_email and self.email:
- group_name = self.email.split('@')[0]
+ if self.by_email and self.email_address:
+ group_name = self.email_address.split('@')[0]
try:
group = Tag.objects.get(name = group_name, deleted = False)
return group.group.profile.moderate_email