Exclude bots in the user presence query.

(imported from commit 02668ba5db85e12ac0aefc0fa2480d38ffed4921)
This commit is contained in:
Steve Howell 2013-09-16 15:21:28 -04:00
parent 6cd33870e9
commit 1e912c7e22
1 changed files with 2 additions and 1 deletions

View File

@ -715,7 +715,8 @@ class UserPresence(models.Model):
query = UserPresence.objects.filter(
user_profile__realm_id=realm_id,
user_profile__is_active=True
user_profile__is_active=True,
user_profile__is_bot=False
).values(
'client__name',
'status',