bro i want to check that
i want to give a appointment model
appointment is available for 6 days a week
from monday to saturday
and from 11 am to 7pm
can you please give me this coding coz i have to submit my project today
On Tuesday, July 15, 2014 4:59:18 PM UTC+5:30, hardik
like that:
def clean_date(self):
date = self.cleaned_data['date']
if date < datetime.datetime.now():
raise forms.ValidationError(_(u'Must be a future date'))
return date
2014-07-15 12:29 GMT+01:00 :
> i want validation in form.py in which the datetime should
i want validation in form.py in which the datetime should not be less than
datetime.now
please i need it urgently
please help me
--
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,
3 matches
Mail list logo