all: implement black as code formatter
This commit is contained in:
		| @ -16,7 +16,11 @@ class CaptchaFactor(FormView, AuthenticationFactor): | ||||
|  | ||||
|     def get_form(self, form_class=None): | ||||
|         form = CaptchaForm(**self.get_form_kwargs()) | ||||
|         form.fields['captcha'].public_key = self.authenticator.current_factor.public_key | ||||
|         form.fields['captcha'].private_key = self.authenticator.current_factor.private_key | ||||
|         form.fields['captcha'].widget.attrs["data-sitekey"] = form.fields['captcha'].public_key | ||||
|         form.fields["captcha"].public_key = self.authenticator.current_factor.public_key | ||||
|         form.fields[ | ||||
|             "captcha" | ||||
|         ].private_key = self.authenticator.current_factor.private_key | ||||
|         form.fields["captcha"].widget.attrs["data-sitekey"] = form.fields[ | ||||
|             "captcha" | ||||
|         ].public_key | ||||
|         return form | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer