рубильник news
This commit is contained in:
1 parent
4b04d41dbe
commit
40020934b3
1 file changed
+2
-1
@@ -279,7 +279,8 @@ class TestingView(generics.ListCreateAPIView):
|
||||
completion_date=request.data["completion_date"],
|
||||
test_passed=False,
|
||||
)
|
||||
self.create_news(request, testing)
|
||||
if request.data.get("news") == "true":
|
||||
self.create_news(request, testing)
|
||||
return Response(
|
||||
{"status": "success", "message": "Testing created successfully."},
|
||||
status=200,
|
||||
|
||||
Reference in new issue
Block a user