mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
Don't use notification if the module is not present (probably broke that when refactoring notifications)
This commit is contained in:
parent
e0654c8d57
commit
32b5d5f55f
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue