diff --git a/management/views.py b/management/views.py index 59c6044..ef1a00e 100644 --- a/management/views.py +++ b/management/views.py @@ -1698,7 +1698,9 @@ def news_management_update(request,pk): image = request.FILES.get('image') if request.POST.get('date'): date = request.POST.get('date') - News.objects.filter(id=pk).update(type=t, title=title, author=author, date=date, content=content, source=source, image=image) + News.objects.filter(id=pk).update(type=t, title=title, author=author, date=date, content=content, source=source) + news.image = image + news.save() else: News.objects.filter(id=pk).update(type=t, title=title, author=author, content=content, source=source, image=image)