mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #35175 -- Made migraton writer preserve keyword-only arguments.
Thanks Gerald Goh for the report.
This commit is contained in:
committed by
Mariusz Felisiak
parent
8b7ddd1b62
commit
06264258dc
@@ -68,6 +68,11 @@ class ArgsKwargsOperation(TestOperation):
|
||||
)
|
||||
|
||||
|
||||
class ArgsAndKeywordOnlyArgsOperation(ArgsKwargsOperation):
|
||||
def __init__(self, arg1, arg2, *, kwarg1, kwarg2):
|
||||
super().__init__(arg1, arg2, kwarg1=kwarg1, kwarg2=kwarg2)
|
||||
|
||||
|
||||
class ExpandArgsOperation(TestOperation):
|
||||
serialization_expand_args = ["arg"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user