vote create_news img
This commit is contained in:
1 parent
ecd62eec18
commit
e6b5ea4ac9
1 file changed
+2
-1
@@ -269,7 +269,8 @@ class VoteCreate(APIView):
|
|||||||
text=f'Пройдите голосование "{vote_url}" до {formatted_date}',
|
text=f'Пройдите голосование "{vote_url}" до {formatted_date}',
|
||||||
cdate=request.data["startDate"],
|
cdate=request.data["startDate"],
|
||||||
author=request.user,
|
author=request.user,
|
||||||
link=os.path.join("defaultimg", "vote.png"),
|
link = None
|
||||||
|
# link=os.path.join("defaultimg", "vote.png"),
|
||||||
)
|
)
|
||||||
news.save()
|
news.save()
|
||||||
vote.news = news
|
vote.news = news
|
||||||
|
|||||||
Reference in new issue
Block a user