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