Model.save()/asave() deprecation allows duplicate arguments
Follow-up to #35554.
The deprecation code from #35060 allows duplicate arguments between the positional and keyword variants. For example, Model.save(True, force_insert=False)
tries to set force_insert
to True
positionally and False
by keyword.
This should be detected and raised as a TypeError
, like Python would normally do.
Change History
(6)
Has patch: |
set
|
Owner: |
changed from nobody to Natalia Bidart
|
Severity: |
Normal → Release blocker
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Cleanup/optimization → Bug
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
In 432b069b: