diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-06-27 19:39:37 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-06-27 13:39:37 -0400 |
commit | 617505ca892fc84c7be1c224ebca2c27f93e8f50 (patch) | |
tree | f55bfbb02792f4ddef386f7609ea6f6f27287741 /django/db/models/indexes.py | |
parent | d381914aef50e04ca44b9d7bb9274c8351f5b9bf (diff) | |
download | django-617505ca892fc84c7be1c224ebca2c27f93e8f50.tar.gz |
Fixed #28330 -- Prevented passing positional arguments to an Index.
Thanks Tim Graham for the review.
Diffstat (limited to 'django/db/models/indexes.py')
-rw-r--r-- | django/db/models/indexes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/indexes.py b/django/db/models/indexes.py index 7e5b8bca30..4c1aeccfab 100644 --- a/django/db/models/indexes.py +++ b/django/db/models/indexes.py @@ -11,7 +11,7 @@ class Index: # cross-database compatibility with Oracle) max_name_length = 30 - def __init__(self, fields=[], name=None): + def __init__(self, *, fields=[], name=None): if not isinstance(fields, list): raise ValueError('Index.fields must be a list.') if not fields: |