@@ -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):