Update views.py

This commit is contained in:
Nukeap committed 2025-01-23 15:48:20 +03:00
1 parent e30ed6fb7a
commit 66f7bcc8d6
1 file changed
+1 -1
+1 -1
View File
@@ -142,7 +142,7 @@ class VoteCreate(APIView):
text = f'Пройдите голосование "{vote_url}" до {formatted_date}',
cdate = request.data['startDate'],
author = request.user,
link = os.path.join(settings.MEDIA_ROOT,'defaultimg','vote.png'),
link = os.path.join('defaultimg','vote.png'),
vote = vote
)
news.save()