From 32b5d5f55f84da26ed4e4456ef3008d8f753ff3e Mon Sep 17 00:00:00 2001 From: Mathieu Pillard Date: Fri, 22 Jan 2010 14:31:06 +0100 Subject: [PATCH] Don't use notification if the module is not present (probably broke that when refactoring notifications) --- avatar/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avatar/views.py b/avatar/views.py index df2a5fb..ebe9022 100644 --- a/avatar/views.py +++ b/avatar/views.py @@ -138,7 +138,8 @@ def delete(request, extra_context={}, next_override=None): if unicode(a.id) not in ids: a.primary = True a.save() - _notification_updated(request, a) + if notification: + _notification_updated(request, a) break Avatar.objects.filter(id__in=ids).delete() request.user.message_set.create(