diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2022-01-28 20:15:53 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-31 12:30:13 +0100 |
| commit | d3cb91db87b78629c0d2682630e90a048275179e (patch) | |
| tree | 92476354cbb4df1bcff3cd1514a1bac6cbc98676 /django/forms/models.py | |
| parent | a320aab5129f4019b3c1d28b7a3b509582bc56f9 (diff) | |
Used more augmented assignment statements.
Identified using the following command:
$ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
Diffstat (limited to 'django/forms/models.py')
| -rw-r--r-- | django/forms/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 89cb000271..b79157ce68 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -316,7 +316,7 @@ class ModelFormMetaclass(DeclarativeFieldsMetaclass): missing_fields = none_model_fields.difference(new_class.declared_fields) if missing_fields: message = "Unknown field(s) (%s) specified for %s" - message = message % (", ".join(missing_fields), opts.model.__name__) + message %= (", ".join(missing_fields), opts.model.__name__) raise FieldError(message) # Override default model fields with any custom declared ones # (plus, include all the other declared fields). |
