gather_subscriptions: Tighten the query for Subscription objects.

(imported from commit a7caed32e52f68c7d6e33e15a7954df4fe90d797)
This commit is contained in:
Tim Abbott 2013-10-02 12:02:36 -04:00
parent f26a23a5fa
commit 382dd64ce9
1 changed files with 1 additions and 1 deletions

View File

@ -1452,7 +1452,7 @@ def decode_email_address(email):
def gather_subscriptions(user_profile):
# For now, don't display subscriptions for private messages.
subs = Subscription.objects.select_related().filter(
subs = Subscription.objects.select_related("recipient").filter(
user_profile = user_profile,
recipient__type = Recipient.STREAM)