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
iWidget, but it would seem that your print
>> statement should be:
>>
>> print(fourteen.mywidget)
>>
>>
>>
>> *From:* django...@googlegroups.com [mailto:
>> django...@googlegroups.com ] *On Behalf Of *Farhan Khan
>> *Sent:* Monday, December 19, 2016 11:4
gt; *To:* Django users
> *Subject:* MultiWidget not rendering
>
>
>
> Hi all!
>
> I am trying to get a MultiWidget with two TextFields ,however I am not
> able to get anything to render. Here is my code.
>
>
>
> from django import forms
> from django.forms imp
: MultiWidget not rendering
Hi all!
I am trying to get a MultiWidget with two TextFields ,however I am not able to
get anything to render. Here is my code.
from django import forms
from django.forms import widgets
class DateSelectorWidget(widgets.MultiWidget):
def __init__(self, attrs=None
Hi all!
I am trying to get a MultiWidget with two TextFields ,however I am not able
to get anything to render. Here is my code.
from django import forms
from django.forms import widgets
class DateSelectorWidget(widgets.MultiWidget):
def __init__(self, attrs=None):
_widgets = (forms.T
5 matches
Mail list logo