Skip to content

Commit

Permalink
clarify accepted characters in names
Browse files Browse the repository at this point in the history
  • Loading branch information
ericli18 committed Oct 25, 2024
1 parent 77954e9 commit 583e912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hiss/application/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,6 @@ def is_valid_name(name):
f"us at {settings.ORGANIZER_EMAIL}. "
)
if not is_valid_name(self.first_name):
raise exceptions.ValidationError("First name can only contain letters.")
raise exceptions.ValidationError("First name can only contain letters, spaces, hyphens, and apostrophes.")
if not is_valid_name(self.last_name):
raise exceptions.ValidationError("Last name can only contain letters.")
raise exceptions.ValidationError("Last name can only contain letters, spaces, hyphens, and apostrophes.")

0 comments on commit 583e912

Please sign in to comment.