From 1e6b83b6c8ceac0638e2f6a399ae0f550851a736 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Thu, 26 Sep 2013 15:08:24 -0400 Subject: [PATCH] Fetch stream.realm information when fetching default streams (imported from commit 08eb32e6ecda75b17d6532b0421c371de2327027) --- zerver/lib/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 1514016f85..07bd716330 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -1106,7 +1106,7 @@ def set_default_streams(realm, stream_names): def get_default_subs(user_profile): return [default.stream for default in - DefaultStream.objects.select_related("stream").filter(realm=user_profile.realm)] + DefaultStream.objects.select_related("stream", "stream__realm").filter(realm=user_profile.realm)] def do_update_user_activity_interval(user_profile, log_time): effective_end = log_time + datetime.timedelta(minutes=15)