From 02aa92a604cb29cd7b617fb61815339e7af8000f Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 31 Oct 2012 13:48:11 -0400 Subject: [PATCH] Correct comment on filter_by_subscriptions This isn't dead code; it's used by tests. (imported from commit ce6cfc049d2cb8050aff1fef1b77a3778b7ceacb) --- zephyr/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zephyr/models.py b/zephyr/models.py index fab42fe14b..8d3377908c 100644 --- a/zephyr/models.py +++ b/zephyr/models.py @@ -611,9 +611,8 @@ def bulk_create_huddles(users, huddle_user_list): recipient=huddle_recipients[huddle_hash])) batch_bulk_create(Subscription, subscriptions_to_create) -# This is currently dead code since all the places where we used to -# use it now have faster implementations, but I expect this to be -# potentially useful for code in the future, so not deleting it yet. +# This function is used only by tests. +# We have faster implementations within the app itself. def filter_by_subscriptions(messages, user): user_profile = UserProfile.objects.get(user=user) user_messages = []