python3: discard tabs in python source files (#31158)
This commit is contained in:
parent
af95b1bb0a
commit
7000c4d86b
|
@ -128,7 +128,7 @@ class RegistrationCompletionForm(RegistrationCompletionFormNoPassword):
|
|||
if 'password1' in self.cleaned_data and 'password2' in self.cleaned_data:
|
||||
if self.cleaned_data['password1'] != self.cleaned_data['password2']:
|
||||
raise ValidationError(_("The two password fields didn't match."))
|
||||
self.instance.set_password(self.cleaned_data['password1'])
|
||||
self.instance.set_password(self.cleaned_data['password1'])
|
||||
return self.cleaned_data
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from .views import RegistrationView, registration_completion, DeleteView, regist
|
|||
|
||||
urlpatterns = [
|
||||
url(r'^activate/(?P<registration_token>[\w: -]+)/$',
|
||||
registration_completion, name='registration_activate'),
|
||||
registration_completion, name='registration_activate'),
|
||||
url(r'^register/$',
|
||||
RegistrationView.as_view(),
|
||||
name='registration_register'),
|
||||
|
|
|
@ -32,10 +32,10 @@ def alter_foreign_keys(apps, schema_editor):
|
|||
a.save()
|
||||
for fed in LibertyFederation.objects.all():
|
||||
if fed.idp:
|
||||
lp = LibertyProvider.objects.get(old_id=fed.idp)
|
||||
lp = LibertyProvider.objects.get(old_id=fed.idp)
|
||||
fed.idp = lp.service_ptr_id
|
||||
if fed.sp:
|
||||
lp = LibertyProvider.objects.get(old_id=fed.sp)
|
||||
lp = LibertyProvider.objects.get(old_id=fed.sp)
|
||||
fed.sp = lp.service_ptr_id
|
||||
fed.save()
|
||||
|
||||
|
|
Loading…
Reference in New Issue