create_news news_img
This commit is contained in:
1 parent
131edce551
commit
d08a3c488e
1 file changed
+1
-1
@@ -343,7 +343,7 @@ class TestingView(generics.ListCreateAPIView):
|
||||
if news_img_path and os.path.isfile(news_img_path):
|
||||
news_img = testing.test.file
|
||||
else:
|
||||
news_img = os.path.join("defaultimg", "default.jpeg")
|
||||
news_img = os.path.join("defaultimg", "vote.png")
|
||||
news = News(
|
||||
title="Пройдите тестирование!",
|
||||
text=f'Пройдите тестирование "{testing_url}" до {formatted_date}',
|
||||
|
||||
Reference in new issue
Block a user