chore [P-01]: подтянул бэк

This commit is contained in:
Denis Voinovich committed 2025-06-03 10:07:31 +03:00
commit 0588a55b32
1 file changed
+1 -3
+1 -3
View File
@@ -339,14 +339,12 @@ class TestingView(generics.ListCreateAPIView):
testing_url = make_clickable(testing.test.name,
f"/test/testdetail/{testing.test.id}?mode=exam")
news_img = testing.test.file if testing.test.file else None
news = News(
title="Пройдите тестирование!",
text=f'Пройдите тестирование "{testing_url}" до {formatted_date}',
cdate=request.data["datestart"],
author=request.user,
link=news_img,
link=testing.test.file,
)
news.save()
testing.news = news