def __init__(self, *args, **kwargs): super(ProveedorForm, self).__init__(*args, **kwargs) self.fields['password1'].label = "Contraseña" self.fields['password2'].label = "Confirmar contraseña" self.fields['email'].label = "Correo Electrtónico" self.fields['first_name'].label = "Nombre" self.fields['nacimiento'].widget = DatePickerWidget( attrs={'class': 'dateopera'}, format="%d/%m/%Y") self.fields['telefono'].widget = forms.NumberInput()
def __init__(self, *args, **kwargs): super(ClienteForm, self).__init__(*args, **kwargs) self.fields['email'].label = "Correo Electrtónico" self.fields['first_name'].label = "Nombre" self.fields['last_name'].label = "Apellidos" self.fields['nacimiento'].widget = DatePickerWidget( attrs={'class': 'dateopera'}, format="%d/%m/%Y") self.fields['telefono'].widget = forms.NumberInput()