Re: SelectDateWidget when DateField is not required

2017-06-30 Thread Tim Graham
I can't reproduce a crash. If I select only a month, I see a validation error, "Enter a valid date." On Monday, June 12, 2017 at 6:28:29 AM UTC-4, Nonverbis M wrote: > > *Django 1.11.2* > > I'd like to use SelectDateWidget. > > > class FrameDate(models.Model): > through_date = models.DateFiel

Re: SelectDateWidget when DateField is not required

2017-06-12 Thread Melvyn Sopacua
On Monday 12 June 2017 03:28:29 Nonverbis M wrote: > There is that method clean_through_date and the break point in it. But > in case of incomplete set of month, day and year the program will not > even call this clean_through_date() method. This method is called in > two cases: > > 1) if the thr

SelectDateWidget when DateField is not required

2017-06-12 Thread Nonverbis M
*Django 1.11.2* I'd like to use SelectDateWidget. class FrameDate(models.Model): through_date = models.DateField(null=True, blank=True, verbose_name=_("through")) ... class FrameDateForm(ModelForm): def clean