Skip to content

Commit ea6a016

Browse files
committed
Regularize use of ModelForm in ietfauth.forms, a cosmetic change,
probably a left-over from way back - Legacy-Id: 11932
1 parent aac9578 commit ea6a016

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

ietf/ietfauth/forms.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from django import forms
44
from django.conf import settings
55
from django.core.exceptions import ValidationError
6-
from django.forms import ModelForm
76
from django.db import models
87
from django.contrib.auth.models import User
98
from django.utils.html import mark_safe
@@ -68,13 +67,13 @@ def get_person_form(*args, **kwargs):
6867
if not roles:
6968
exclude_list += ['biography', 'photo', ]
7069

71-
class PersonForm(ModelForm):
70+
class PersonForm(forms.ModelForm):
7271
class Meta:
7372
model = Person
7473
exclude = exclude_list
7574

7675
def __init__(self, *args, **kwargs):
77-
super(ModelForm, self).__init__(*args, **kwargs)
76+
super(forms.ModelForm, self).__init__(*args, **kwargs)
7877

7978
# blank ascii if it's the same as name
8079
self.fields["ascii"].required = self.fields["ascii"].widget.is_required = False
@@ -161,7 +160,7 @@ def clean_username(self):
161160
class TestEmailForm(forms.Form):
162161
email = forms.EmailField(required=False)
163162

164-
class WhitelistForm(ModelForm):
163+
class WhitelistForm(forms.ModelForm):
165164
class Meta:
166165
model = Whitelisted
167166
exclude = ['by', 'time' ]

0 commit comments

Comments
 (0)