diff --git a/conservancy/usethesource/forms.py b/conservancy/usethesource/forms.py index 3fb9755f39b2c74a7071ac2a56497506684d2e5d..9328b6d5a2d82ca0dd607febbb5eed119b3c95ff 100644 --- a/conservancy/usethesource/forms.py +++ b/conservancy/usethesource/forms.py @@ -6,7 +6,11 @@ from .models import Comment class CommentForm(forms.ModelForm): class Meta: model = Comment - fields = ['message'] + fields = ['time', 'message'] + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.fields['time'].widget.input_type = 'datetime-local' class DownloadForm(forms.Form):