Skip to content

Commit

Permalink
Update error msg
Browse files Browse the repository at this point in the history
Signed-off-by: Kipchirchir Sigei <[email protected]>
  • Loading branch information
KipSigei committed Jun 21, 2023
1 parent 0d40402 commit 81abe77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions onadata/apps/api/viewsets/data_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ def destroy(self, request, *args, **kwargs):
instance.delete()
else:
error_msg = {
"error": _("Permanent Submission deletion not allowed")
"error": _(
"Permanent submission deletion is not enabled for this server."
)
}
break
else:
Expand Down Expand Up @@ -419,7 +421,9 @@ def destroy(self, request, *args, **kwargs):
self.object.delete()
else:
error_msg = {
"error": _("Permanent Submission deletion not allowed")
"error": _(
"Permanent submission deletion is not enabled for this server."
)
}
return Response(error_msg, status=status.HTTP_400_BAD_REQUEST)
else:
Expand Down

0 comments on commit 81abe77

Please sign in to comment.