TestingView post news
This commit is contained in:
1 parent
adb2ab9648
commit
d54db597ed
1 file changed
+1
-1
@@ -279,7 +279,7 @@ class TestingView(generics.ListCreateAPIView):
|
||||
completion_date=request.data["completion_date"],
|
||||
test_passed=False,
|
||||
)
|
||||
if request.data.get("news") == "true":
|
||||
if request.data.get("news"):
|
||||
self.create_news(request, testing)
|
||||
return Response(
|
||||
{"status": "success", "message": "Testing created successfully."},
|
||||
|
||||
Reference in new issue
Block a user