Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions applications/forms/hacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class HackerApplicationForm(_BaseApplicationForm):
attrs={"class": "form-control", "placeholder": "+#########"}
),
label="Phone number",
help_text="Don't worry, we won't call you or use it to contact you.",
)

github = social_media_field("github", "https://github.com/biene")
Expand Down
4 changes: 2 additions & 2 deletions applications/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class Meta:
max_length=16,
validators=[
RegexValidator(
regex=r"^\+?1?\d{9,15}$",
regex=r"^\+?1?\d{1,4}(\s?\d{1,4}){2,8}$",
message="Phone number must be entered in the format: \
'+#########'. Up to 16 digits allowed.",
'+#########'. Up to 16 digits allowed, with optional spaces.",
)
],
)
Expand Down