Opened 8 years ago
Closed 8 years ago
#29211 closed New feature (wontfix)
update_or_create with column named defaults
| Reported by: | James Pic | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 2.0 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Currently, signature is: update_or_create(defaults=None, kwargs)
This means that it's not possible to with a column named "defaults".
Perhaps it would be better to accept a dict in args, since we reserve kwargs for column names ?
Note:
See TracTickets
for help on using tickets.
update_or_create()uses same parameters asget_or_create(), and from theget_or_create()docs:Closing as won't fix.