diff --git a/subscription/context_processors.py b/subscription/context_processors.py index 0b22e2d..4b572e8 100644 --- a/subscription/context_processors.py +++ b/subscription/context_processors.py @@ -8,6 +8,7 @@ def get_actstream(request): If we have 'undelivered' items, we deliver them to the unacknowledged list """ stream = user_stream(request.user) + unacknowledged = None if stream: unacknowledged = request.user.get_profile( ).stream_pending_acknowledgements(stream[0][0])