Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/preprints/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def get_parser_context(self, http_request):
return res

def delete(self, request, *args, **kwargs):
if self.get_preprint().machine_state == 'initial':
if self.get_preprint().machine_state in ['initial', 'rejected']:
return super().delete(request, *args, **kwargs)

raise ValidationError('You cannot delete created preprint')
Expand Down
Loading