delete event if speakers arent approved or created
This commit is contained in:
parent
05946d065b
commit
1a3e1088f7
|
@ -282,6 +282,7 @@ class EventProposal(UserSubmittedModel):
|
|||
try:
|
||||
event.speakers.add(sp.speaker)
|
||||
except ObjectDoesNotExist:
|
||||
event.delete()
|
||||
raise ValidationError('Not all speakers are approved or created yet.')
|
||||
|
||||
self.proposal_status = eventproposalmodel.PROPOSAL_APPROVED
|
||||
|
|
Loading…
Reference in a new issue