create_news news_img

This commit is contained in:
cja committed 2025-06-02 17:15:43 +03:00
1 parent 131edce551
commit d08a3c488e
1 file changed
+1 -1
+1 -1
View File
@@ -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}',