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