Don't use notification if the module is not present (probably broke that when refactoring notifications)

This commit is contained in:
Mathieu Pillard 2010-01-22 14:31:06 +01:00 committed by Eric Florenzano
parent e0654c8d57
commit 32b5d5f55f

View file

@ -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(