Standardized inheritance order of BootstrapMixin

This commit is contained in:
Jeremy Stretch
2016-12-21 14:15:18 -05:00
parent 6b0e2aaefd
commit fdedd18394
7 changed files with 70 additions and 70 deletions

View File

@@ -3,7 +3,7 @@ from django.contrib.auth.forms import AuthenticationForm, PasswordChangeForm as
from utilities.forms import BootstrapMixin
class LoginForm(AuthenticationForm, BootstrapMixin):
class LoginForm(BootstrapMixin, AuthenticationForm):
def __init__(self, *args, **kwargs):
super(LoginForm, self).__init__(*args, **kwargs)
@@ -12,5 +12,5 @@ class LoginForm(AuthenticationForm, BootstrapMixin):
self.fields['password'].widget.attrs['placeholder'] = ''
class PasswordChangeForm(DjangoPasswordChangeForm, BootstrapMixin):
class PasswordChangeForm(BootstrapMixin, DjangoPasswordChangeForm):
pass