From ed05f50217616c339364004e151f08e9b761c5c9 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 2 Apr 2010 19:50:46 +0100 Subject: [PATCH] Fixed validation check --- reddit/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reddit/cron.py b/reddit/cron.py index 9ef11a8..f5cc2fb 100644 --- a/reddit/cron.py +++ b/reddit/cron.py @@ -63,7 +63,7 @@ class ProcessValidations(): for msg in inbox: if not msg.was_comment and msg.new: try: - acc = RedditAccount.objects.get(username_iexact=msg.username) + acc = RedditAccount.objects.get(username__iexact=msg.author) if not acc.validated and msg.body == acc.user.username: acc.validated = True acc.save()