Revert "Merge pull request #3125 from alphagov/revert-retry"

This reverts commit 6b9a50beff, reversing
changes made to 33f93dfea2.
This commit is contained in:
Leo Hemsted
2021-02-09 17:01:04 +00:00
parent 6b9a50beff
commit 4f89be6944
9 changed files with 435 additions and 61 deletions

View File

@@ -56,7 +56,7 @@ def _update_broadcast_message(broadcast_message, new_status, updating_user):
f'User {updating_user.id} cannot approve their own broadcast_message {broadcast_message.id}',
status_code=400
)
elif not broadcast_message.areas:
elif len(broadcast_message.areas['simple_polygons']) == 0:
raise InvalidRequest(
f'broadcast_message {broadcast_message.id} has no selected areas and so cannot be broadcasted.',
status_code=400