Opened 6 years ago
Last modified 18 hours ago
#30200 assigned New feature
Add support for using indexes in update() for ArrayFields.
Description ¶
Django supports index lookup for ArrayField
s (see docs). I think we should support them also in update()
, e.g.
Foo.objects.update(bar_array_field__0='random text') Foo.objects.update(bar_array_field__0=F('other_related_field'))
I know that 3rd party packages already support this e.g. django_postgres_extensions, but IMO we should add this to Django.
According to the ticket's flags, the next step(s) to move this issue forward are:
- For anyone except the patch author to review the patch using the patch review checklist and either mark the ticket as "Ready for checkin" if everything looks good, or leave comments for improvement and mark the ticket as "Patch needs improvement".
Change History (11)
comment:1 by , 6 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 5 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:5 by , 5 years ago
Patch needs improvement: | set |
---|
comment:6 by , 4 years ago
Has patch: | unset |
---|---|
Owner: | changed from | to
Patch needs improvement: | unset |
comment:7 by , 3 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:8 by , 11 months ago
Cc: | added |
---|
comment:9 by , 7 months ago
Cc: | added |
---|
comment:10 by , 6 days ago
Owner: | set to |
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
OK. Seems reasonable.