Friday, January 3, 2020

Date and Time picker only specific slots.

Ho doy i make a limet of available pick dates on weekdays only
and time slots available from 9am to 5pm?
I am
using this type of datepicker cause i could ony use this one on my project.
my Django version is 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/fd2a9d2d-2273-41c4-aff8-79fe8c5d96bf%40googlegroups.com.

No comments:

Post a Comment