Re: MultiWidget not rendering

2016-12-25 Thread Farhan Khan
Hi all, I figured out how it works. Using MultiWidget requires three components: MultiWidget, MultiValueField and a form. Here is my example: class ComplexMultiWidget(forms.MultiWidget): def __init__(self, attrs=None): widgets = ( forms.DateInput(), forms.Sel

Re: MultiWidget not rendering

2016-12-23 Thread Collin Anderson
Hi, I think you want something like this. class Fourteen(forms.Form): mywidget = forms.DateField(widget=DateSelectorWidget()) Collin On Monday, December 19, 2016 at 1:13:17 PM UTC-6, Farhan Khan wrote: > > Unfortunately that does not display. > In the template I had it as {{ fourteen }} and

Re: MultiWidget not rendering

2016-12-19 Thread Farhan Khan
Unfortunately that does not display. In the template I had it as {{ fourteen }} and saw it was rendering everything but my custom widget. -- Farhan Khan PGP Fingerprint: 4A78 F071 5CB6 E771 B8D6 3910 F371 FE22 3B20 B21B On Mon, Dec 19, 2016 at 2:02 PM, Matthew Pava wrote: > I’m not that familia

RE: MultiWidget not rendering

2016-12-19 Thread Matthew Pava
I’m not that familiar with MultiWidget, but it would seem that your print statement should be: print(fourteen.mywidget) From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Farhan Khan Sent: Monday, December 19, 2016 11:40 AM To: Django users Subject: MultiWidg