Exemplo n.º 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)
Exemplo n.º 2
0
def whitelisting_allow(request, comment_id):
    comment = get_object_or_404(QuestComment.all_objects, id=comment_id)
    models.allow(request.user, comment)
Exemplo n.º 3
0
def whitelisting_allow(request, comment_id):
    comment = get_object_or_404(QuestComment.all_objects, id=comment_id)
    models.allow(request.user, comment)