Don't allow delete and redraft of ratings
This commit is contained in:
parent
521f917d01
commit
936d68f0ed
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ class DeleteAndRedraft(View):
|
|||
status = get_object_or_404(
|
||||
models.Status.objects.select_subclasses(), id=status_id
|
||||
)
|
||||
if isinstance(status, models.GeneratedNote):
|
||||
if isinstance(status, (models.GeneratedNote, models.Rating)):
|
||||
return HttpResponseBadRequest()
|
||||
|
||||
# don't let people redraft other people's statuses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue