Scripts tagged with forms

1-1 of 1.

create a widget in init forms

to forms widget by kere , 0 comments

1 3 5 6 7 ...
  class selectHomeForm(forms.Form):
    title = forms.CharField(max_length=50, label = 'Select homes:')  
    def __init__ (self, *args, **kwargs):
        super(selectHomeForm, self).__init__(*args, **kwargs)
        homes =  homeMap.objects.all()