from django.views.decorators.http import require_http_methods
from django.http import JsonResponse, HttpResponse
import json
from messageAndArticle.model.articles import Articles


@require_http_methods(['POST'])
def Update(request):
    para = json.loads(request.body)
    aid = para['articleId']
    atc = para['article']
    clog = Articles.updateArticle(aid, atc)
    return JsonResponse({'code': 200, 'changeLog': clog})

114ca977800881bcbe5df42d447af671c02c149b
<mask token>

<mask token>


@require_http_methods(['POST'])
def Update(request):
    para = json.loads(request.body)
    aid = para['articleId']
    atc = para['article']
    clog = Articles.updateArticle(aid, atc)
    return JsonResponse({'code': 200, 'changeLog': clog})

from django.views.decorators.http import require_http_methods
from django.http import JsonResponse, HttpResponse
import json
from messageAndArticle.model.articles import Articles


@require_http_methods(['POST'])
def Update(request):
    para = json.loads(request.body)
    aid = para['articleId']
    atc = para['article']
    clog = Articles.updateArticle(aid, atc)
    return JsonResponse({'code': 200, 'changeLog': clog})
