Friday, January 3, 2020

date and time only especific days and hours

How do I make a limit of available pick dates only on weekdays and times slots between 9am to 5pm? I'm using this widget for date ant time picker as it was the only one working with my django version (1.11.10) please help!!! from django import forms
class DateInput(forms.DateInput):
input_type = 'date'
class RequestForm(forms.Form):
"""Form to allow users to request an hour of profesional service support"""
name = forms.CharField(required=True, max_length=75)
email = forms.EmailField(required=True, max_length=75)
subject = forms.CharField(required=True, max_length=75)
date_required = forms.DateField(widget=DateInput)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9f441926-5a43-4826-a7ba-f9e49e02ee38%40googlegroups.com.

No comments:

Post a Comment