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