Change matching for client strings in /activity to use __startswith.

This way we can match prefixes, like "API: Foo".

(imported from commit 2acde88e31b4f2f4a418f3930975a5f3a4e9ef2d)
This commit is contained in:
Luke Faraone 2013-03-28 08:11:37 -07:00
parent e0cf6494ed
commit 85b4ffbf2e
1 changed files with 1 additions and 1 deletions

View File

@ -1195,7 +1195,7 @@ class ActivityTable(object):
self.has_pointer = True
for record in UserActivity.objects.filter(
query=url,
client__name=client_name).select_related():
client__name__startswith=client_name).select_related():
row = self.rows.setdefault(record.user_profile.user.email, {})
row['realm'] = record.user_profile.realm.domain
row['full_name'] = record.user_profile.full_name