def METHOD_NAME(request):
    if request.is_ajax() and request.method == "POST":
        limit = 15
        notifications = Notification.objects.all_unread(request.user)
        count = notifications.count()
        # limit number of items else the list in the menu will go off
        # the bottom of the screen and can't get the links at the bottom...
        notifications = notifications[:limit]
        notes = []
        for note in notifications:
            removable = note.target_content_type != ContentType.objects.get(
                app_label="announcements",
                model='announcement'
            )
            notes.append(
                {
                    'link': str(note.get_link()),
                    'id': str(note.id),
                    'removable': removable,
                }
            )
        data = {
            "notifications": notes,
            "count": count,
            "limit": limit,
        }
        json_data = json.dumps(data)
        return HttpResponse(json_data, content_type='application/json')
    else:
        raise Http404