From 1af81abe9738f163b05428e08196a62bc4ba5c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Grou=C3=A8s?= <valentin.groues@uni.lu> Date: Tue, 25 Apr 2017 10:01:21 +0200 Subject: [PATCH] change 'contact on' label on contact attempt object - fixes #95 --- smash/web/forms.py | 2 +- smash/web/models/contact_attempt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smash/web/forms.py b/smash/web/forms.py index 62984dc7..0740fd9b 100644 --- a/smash/web/forms.py +++ b/smash/web/forms.py @@ -281,7 +281,7 @@ class VisitAddForm(ModelForm): class ContactAttemptForm(ModelForm): - datetime_when = forms.DateTimeField(label='Contact on (YYYY-MM-DD HH:MM)', + datetime_when = forms.DateTimeField(label='When? (YYYY-MM-DD HH:MM)', widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS) ) diff --git a/smash/web/models/contact_attempt.py b/smash/web/models/contact_attempt.py index 796b1ce5..b21d8d60 100644 --- a/smash/web/models/contact_attempt.py +++ b/smash/web/models/contact_attempt.py @@ -15,7 +15,7 @@ class ContactAttempt(models.Model): ) type = models.CharField(max_length=2, default=CONTACT_TYPES_PHONE, choices=CONTACT_TYPES_CHOICES) - datetime_when = models.DateTimeField(verbose_name="Contact on", help_text='When did the contact occurred?') + datetime_when = models.DateTimeField(verbose_name="When", help_text='When did the contact occurred?') success = models.BooleanField(default=False) -- GitLab