diff options
Diffstat (limited to '')
-rw-r--r-- | server/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/views.py b/server/views.py index b230d51..c23e8c8 100644 --- a/server/views.py +++ b/server/views.py @@ -455,9 +455,9 @@ def doclist(request): selected.append(docc) for i in selected: - if request.POST["action"] == 'delete': + if request.POST["action"] == 'delete' and settings.DEBUG: i.delete() - elif request.POST["action"] == 'approve': + elif request.POST["action"] == 'approve' and settings.DEBUG: i.status = 'ok' i.save() elif request.POST["action"] == 'archive': |