рубильник news

This commit is contained in:
cja committed 2025-06-02 13:51:19 +03:00
1 parent 4b04d41dbe
commit 40020934b3
1 file changed
+1
+1
View File
@@ -279,6 +279,7 @@ class TestingView(generics.ListCreateAPIView):
completion_date=request.data["completion_date"], completion_date=request.data["completion_date"],
test_passed=False, test_passed=False,
) )
if request.data.get("news") == "true":
self.create_news(request, testing) self.create_news(request, testing)
return Response( return Response(
{"status": "success", "message": "Testing created successfully."}, {"status": "success", "message": "Testing created successfully."},