@staff_member_required()
def subject_details(request, subject_id):
    try:
        subject = Subject.objects.get(pk=subject_id)
    except Subject.DoesNotExist:
        return Http404('The subject does not exist')
    return render(request, 'annotationweb/subject_details.html', {'subject': subject})
@staff_member_required()
def subject_details(request, subject_id):
    try:
        subject = Subject.objects.get(pk=subject_id)
    except Subject.DoesNotExist:
        return Http404('The subject does not exist')
    return render(request, 'annotationweb/subject_details.html', {'subject': subject})