예제 #1
0
def whitelisting_allow(request, comment_id):
    try:
        comment = QuestComment.all_objects.get(id=comment_id)
    except QuestComment.DoesNotExist:
        comment = get_object_or_404(Quest.all_objects, id=comment_id)

    models.allow(comment, moderator=request.user)
예제 #2
0
파일: api.py 프로젝트: eiritana/canvas
def whitelisting_allow(request, comment_id):
    comment = get_object_or_404(QuestComment.all_objects, id=comment_id)
    models.allow(request.user, comment)
예제 #3
0
파일: api.py 프로젝트: StetHD/canvas-2
def whitelisting_allow(request, comment_id):
    comment = get_object_or_404(QuestComment.all_objects, id=comment_id)
    models.allow(request.user, comment)