Revert "Merge pull request #3101 from alphagov/retry-broadcasts"

This reverts commit 1bd99c779d, reversing
changes made to d390eb2cac.
This commit is contained in:
Leo Hemsted
2021-02-08 11:02:34 +00:00
parent 49e6ec1ead
commit bee0059e53
8 changed files with 60 additions and 421 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 len(broadcast_message.areas['simple_polygons']) == 0:
elif not broadcast_message.areas:
raise InvalidRequest(
f'broadcast_message {broadcast_message.id} has no selected areas and so cannot be broadcasted.',
status_code=400