Simplified the parent constructor calls in the data models and the forms.

This commit is contained in:
依瑪貓
2020-08-12 15:39:07 +08:00
parent 2ed7c52475
commit 5e8e8e815e
3 changed files with 5 additions and 5 deletions

View File

@ -50,7 +50,7 @@ class UserForm(forms.Form):
is_disabled = forms.BooleanField(required=False)
def __init__(self, *args, **kwargs):
super(UserForm, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
self.user = None
self.current_user = None