#24709: ArrayField doesn't support .update() and F() objects
-------------------------------------+-------------------------------------
Reporter: ris | Owner: nobody
Type: New feature | Status: new
Component: contrib.postgres | Version: 1.8
Severity: Normal | Resolution:
Keywords: postgresql contrib | Triage Stage: Accepted
arrayfield update |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by codingjoe):
There is more broken here:
{{{
ModelA.objects.update(name_array=F("name_array") + 'some item'])
}}}
This should result in:
{{{
...
SET "myapp_modela"."name_arry" = array_append("myapp_modela"."name_arry",
'some item')
...
}}}
not in:
{{{
...
SET "myapp_modela"."name_arry" = ("myapp_modela"."name_arry" + 'some
item')
...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24709#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/061.d30fdc0373fc059f5f770b3d51d8f0c3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.