From a764d21e733078931c95b4247977d2efe9a43f8b Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 25 Jul 2020 13:47:39 +0200 Subject: [PATCH] =?UTF-8?q?Redo=20student=20=E2=84=96=20placeholder,=20val?= =?UTF-8?q?idate=20min=208=20chars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/forms.py b/users/forms.py index 39eda64..a4e9e1d 100644 --- a/users/forms.py +++ b/users/forms.py @@ -23,7 +23,7 @@ class UserMetaForm(ModelForm): fields = ['real_name', 'student_number'] widgets = { 'real_name': TextInput(attrs={'placeholder': 'Robbe Van Herck'}), - 'student_number': TextInput(attrs={'placeholder': '001700000', 'pattern': '[0-9]*'}) + 'student_number': TextInput(attrs={'placeholder': '01701111', 'pattern': '[0-9]{8,}'}) }