Update views.py
This commit is contained in:
1 parent
e30ed6fb7a
commit
66f7bcc8d6
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user