Add is_active check to /realm_activity report.

(imported from commit e531446bc73caf7173e4aa1d22b35f3942c9c1f9)
This commit is contained in:
Steve Howell
2013-11-24 16:31:44 -05:00
parent 847d4dfbca
commit b5707b9c7b

View File

@@ -540,6 +540,7 @@ def get_user_activity_records_for_realm(realm, is_bot):
records = UserActivity.objects.filter( records = UserActivity.objects.filter(
user_profile__realm__domain=realm, user_profile__realm__domain=realm,
user_profile__is_active=True,
user_profile__is_bot=is_bot user_profile__is_bot=is_bot
) )
records = records.order_by("user_profile__email", "-last_visit") records = records.order_by("user_profile__email", "-last_visit")