def notification_delete(request, notification):
if not request.method == 'POST':
raise Http404()
try:
notification = Notification.objects.get(to=request.user, unique_id=notification)
except Notification.DoesNotExist:
return HttpResponseNotFound()
remove = notification.delete()
return HttpResponse()
#@silk_profile(name='Notifications view')
评论列表
文章目录