butler_ddochi/mm_msg/forms.py
icurfer ea11832a53
Some checks failed
Build And Test / build-and-push (push) Failing after 53s
init
2024-12-13 17:12:03 +09:00

10 lines
287 B
Python

from django import forms
from .models import Message
class MessageForm(forms.ModelForm):
class Meta:
model = Message
fields = ['title', 'text', 'send_time']
widgets = {
'send_time': forms.DateTimeInput(attrs={'type': 'datetime-local'}),
}