diff --git a/accounting/forms.py b/accounting/forms.py index 86e1ffa..eff5f10 100644 --- a/accounting/forms.py +++ b/accounting/forms.py @@ -327,7 +327,7 @@ class AccountForm(forms.Form): }) def __init__(self, *args, **kwargs): - super(AccountForm, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.account = None @property diff --git a/accounting/models.py b/accounting/models.py index a99c160..af71089 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -51,7 +51,7 @@ class Account(DirtyFieldsMixin, models.Model): NET_CHANGE = "3353" def __init__(self, *args, **kwargs): - super(Account, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.url = None self.debit_amount = None self.credit_amount = None @@ -148,7 +148,7 @@ class Transaction(DirtyFieldsMixin, models.Model): related_name="updated_accounting_transactions") def __init__(self, *args, **kwargs): - super(Transaction, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self._records = None self._is_balanced = None self._has_order_hole = None @@ -375,7 +375,7 @@ class Record(DirtyFieldsMixin, models.Model): related_name="updated_accounting_records") def __init__(self, *args, **kwargs): - super(Record, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self._debit_amount = None self._credit_amount = None self.balance = None diff --git a/mia_core/forms.py b/mia_core/forms.py index df98a1d..02d9d75 100644 --- a/mia_core/forms.py +++ b/mia_core/forms.py @@ -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