diff options
| author | Hannes Ljungberg <hannes@5monkeys.se> | 2020-12-23 11:08:42 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-12-23 11:16:13 +0100 |
| commit | d23cb83c99bc77c23e2fb5bff378d2f2092d7b29 (patch) | |
| tree | 90f07a39de035cb15e12574026a19c51d5ed2a7a /django/db/models | |
| parent | 3bca95cca277a1e205c10d4fd3ea8527c6fcc34a (diff) | |
Refs #26167 -- Made DatabaseSchemaEditor._create_index_sql()'s fields argument optional and kwarg-only.
Diffstat (limited to 'django/db/models')
| -rw-r--r-- | django/db/models/indexes.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/django/db/models/indexes.py b/django/db/models/indexes.py index f0f6cdab15..c5fb5789fe 100644 --- a/django/db/models/indexes.py +++ b/django/db/models/indexes.py @@ -66,9 +66,10 @@ class Index: col_suffixes = [order[1] for order in self.fields_orders] condition = self._get_condition_sql(model, schema_editor) return schema_editor._create_index_sql( - model, fields, name=self.name, using=using, db_tablespace=self.db_tablespace, - col_suffixes=col_suffixes, opclasses=self.opclasses, condition=condition, - include=include, **kwargs, + model, fields=fields, name=self.name, using=using, + db_tablespace=self.db_tablespace, col_suffixes=col_suffixes, + opclasses=self.opclasses, condition=condition, include=include, + **kwargs, ) def remove_sql(self, model, schema_editor, **kwargs): |
