From 03f3df6b1db73989c51a6a06ad4df4f43425cdc1 Mon Sep 17 00:00:00 2001 From: Satryaji Aulia Date: Fri, 6 Dec 2019 20:43:25 +0700 Subject: [PATCH 1/2] 1606885864 239 --- core/models/accounts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/models/accounts.py b/core/models/accounts.py index 66dde10..96bbaeb 100755 --- a/core/models/accounts.py +++ b/core/models/accounts.py @@ -109,8 +109,8 @@ class Student(models.Model): validators=[validate_document_file_extension]) latest_work = models.CharField(max_length=100, blank=True, null=True) latest_work_desc = models.TextField(blank=True, null=True) - github_url = models.URLField(max_length=200, blank=True, null=True) - gitlab_url = models.URLField(max_length=200, blank=True, null=True) + github_url = models.URLField(max_length=200, blank=True, null=True, validators=[RegexValidator(r'github.com')]) + gitlab_url = models.URLField(max_length=200, blank=True, null=True, validators=[RegexValidator(r'gitlab.com')]) intro = models.CharField(max_length=50, blank=True, null=True) expected_salary = models.CharField(max_length=10, blank=True, null=True, validators=[RegexValidator(r'^\d{0,10}$')]) job_seeking_status = models.CharField(max_length=30, blank=True, null=True) -- GitLab From 29f6df30cfd0a46317f0fb73e85ec824e6f83174 Mon Sep 17 00:00:00 2001 From: Satryaji Aulia Date: Fri, 6 Dec 2019 20:43:25 +0700 Subject: [PATCH 2/2] 1606885864 239 --- core/models/accounts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/models/accounts.py b/core/models/accounts.py index 66dde10..96bbaeb 100755 --- a/core/models/accounts.py +++ b/core/models/accounts.py @@ -109,8 +109,8 @@ class Student(models.Model): validators=[validate_document_file_extension]) latest_work = models.CharField(max_length=100, blank=True, null=True) latest_work_desc = models.TextField(blank=True, null=True) - github_url = models.URLField(max_length=200, blank=True, null=True) - gitlab_url = models.URLField(max_length=200, blank=True, null=True) + github_url = models.URLField(max_length=200, blank=True, null=True, validators=[RegexValidator(r'github.com')]) + gitlab_url = models.URLField(max_length=200, blank=True, null=True, validators=[RegexValidator(r'gitlab.com')]) intro = models.CharField(max_length=50, blank=True, null=True) expected_salary = models.CharField(max_length=10, blank=True, null=True, validators=[RegexValidator(r'^\d{0,10}$')]) job_seeking_status = models.CharField(max_length=30, blank=True, null=True) -- GitLab