Skip to content

Commit

Permalink
[#2586] return eventbrite_url after cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
elichad committed Nov 28, 2023
1 parent 222a6ed commit 62536b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions amy/extforms/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def clean_eventbrite_url(self):
eventbrite_url = self.cleaned_data.get("eventbrite_url", "")
if eventbrite_url and "eventbrite" not in urlparse(eventbrite_url).hostname:
raise ValidationError("Must be an Eventbrite URL.")
return eventbrite_url

def clean(self):
super().clean()
Expand Down
1 change: 1 addition & 0 deletions amy/extforms/tests/test_training_request_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def setUp(self):
self.data = {
"review_process": "preapproved",
"member_code": "coolprogrammers",
"eventbrite_url": "https://www.eventbrite.com/e/711576483417",
"personal": "John",
"family": "Smith",
"email": "[email protected]",
Expand Down

0 comments on commit 62536b9

Please sign in to comment.