Exemplo n.º 1
0
 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'}),
     }
Exemplo n.º 2
0
 class Meta:
     widgets = {
         'options': JSONEditor(),
         'geolocations': JSONEditor(),
         'username': forms.TextInput(attrs={'autocomplete': 'off'}),
         'password': PasswordWidget(attrs={'autocomplete': 'off'}),
     }
Exemplo n.º 3
0
 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'}))
Exemplo n.º 4
0
 class Meta:
     widgets = {
         'extra_configuration': JsonWidget(),
         'user_password': PasswordWidget(),
     }
Exemplo n.º 5
0
 class Meta:
     widgets = {
         'user_password': PasswordWidget(),
     }
Exemplo n.º 6
0
 class Meta:
     widgets = {
         'options': JSONEditor(),
         'geolocations': JSONEditor(),
         'password': PasswordWidget(),
     }
Exemplo n.º 7
0
 class Meta:
     widgets = {
         'client_secret': PasswordWidget(),
         'calendar_token': PasswordWidget(),
         'calendar_refresh_token': PasswordWidget(),
     }