From 85b4ffbf2e15a6b889e061c5ed73d32705c54d63 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Thu, 28 Mar 2013 08:11:37 -0700 Subject: [PATCH] Change matching for client strings in /activity to use __startswith. This way we can match prefixes, like "API: Foo". (imported from commit 2acde88e31b4f2f4a418f3930975a5f3a4e9ef2d) --- zephyr/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/views.py b/zephyr/views.py index 8173d45738..6f4513695f 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -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