vote create_news img

This commit is contained in:
cja committed 2025-06-03 10:16:28 +03:00
1 parent ecd62eec18
commit e6b5ea4ac9
1 file changed
+2 -1
+2 -1
View File
@@ -269,7 +269,8 @@ class VoteCreate(APIView):
text=f'Пройдите голосование "{vote_url}" до {formatted_date}',
cdate=request.data["startDate"],
author=request.user,
link=os.path.join("defaultimg", "vote.png"),
link = None
# link=os.path.join("defaultimg", "vote.png"),
)
news.save()
vote.news = news