@login_required
def single(request, id, mark_seen=True):
    notice = get_object_or_404(Notice, id=id)
    if request.user == notice.recipient:
        if mark_seen and notice.unseen:
            notice.unseen = False
            notice.save()
        return render_to_response("notification/single.html", {
            "notice": notice,
        }, context_instance=RequestContext(request))
    raise Http404
Detail view for a single :model:`notification.Notice`.
dataset/ETHPy150Open amarandon/smeuhsocial/apps/notification/views.py/single