Пример #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'}),
     }
Пример #2
0
 class Meta:
     widgets = {
         'options': JSONEditor(),
         'geolocations': JSONEditor(),
         'username': forms.TextInput(attrs={'autocomplete': 'off'}),
         'password': PasswordWidget(attrs={'autocomplete': 'off'}),
     }
Пример #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'}))
Пример #4
0
 class Meta:
     widgets = {
         'extra_configuration': JsonWidget(),
         'user_password': PasswordWidget(),
     }
Пример #5
0
 class Meta:
     widgets = {
         'user_password': PasswordWidget(),
     }
Пример #6
0
 class Meta:
     widgets = {
         'options': JSONEditor(),
         'geolocations': JSONEditor(),
         'password': PasswordWidget(),
     }
Пример #7
0
 class Meta:
     widgets = {
         'client_secret': PasswordWidget(),
         'calendar_token': PasswordWidget(),
         'calendar_refresh_token': PasswordWidget(),
     }