class Meta: widgets = { 'options': JsonWidget(), 'geolocations': JsonWidget(), 'username': forms.TextInput(attrs={'autocomplete': 'new-password'}), 'password': PasswordWidget(attrs={'autocomplete': 'new-password'}), 'token': PasswordWidget(attrs={'autocomplete': 'new-password'}), }
class Meta: widgets = { 'options': JSONEditor(), 'geolocations': JSONEditor(), 'username': forms.TextInput(attrs={'autocomplete': 'off'}), 'password': PasswordWidget(attrs={'autocomplete': 'off'}), }
def __init__(self, *args, **kwargs): super(ServiceSettingsAdminForm, self).__init__(*args, **kwargs) self.fields['type'] = ChoiceField( choices=SupportedServices.get_choices(), widget=RadioSelect) self.fields['username'] = CharField(widget=forms.TextInput( attrs={'autocomplete': 'off'})) self.fields['password'] = CharField(widget=PasswordWidget( attrs={'autocomplete': 'off'}))
class Meta: widgets = { 'extra_configuration': JsonWidget(), 'user_password': PasswordWidget(), }
class Meta: widgets = { 'user_password': PasswordWidget(), }
class Meta: widgets = { 'options': JSONEditor(), 'geolocations': JSONEditor(), 'password': PasswordWidget(), }
class Meta: widgets = { 'client_secret': PasswordWidget(), 'calendar_token': PasswordWidget(), 'calendar_refresh_token': PasswordWidget(), }