1class BookingForm(ModelForm):
2 check_in = DateTimeField(required=True, input_formats=["%Y-%m-%dT%H:%M", ])
3 check_out = DateTimeField(
4 required=True, input_formats=["%Y-%m-%dT%H:%M", ])
5#NOTE: input_formats must be a list, even for a single format!
6 class Meta:
7 model = Booking
8 fields = ['room', 'check_in', 'check_out']
9