#24709: New contrib.postgres ArrayField doesn't work quite as expected with
.update
() and F() objects
-------------------------------------+-------------------------------------
Reporter: ris | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.8
(models, ORM) | Keywords: postgresql contrib
Severity: Normal | arrayfield update
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
On a model along the lines of
{{{
class ModelA ( models.Model ):
name = TextField ()
name_array = ArrayField ( models.TextField () )
}}}
If you perform
{{{
>>> ModelA.objects.update ( name_array = [ F ( "name" ) ] )
}}}
You end up with
{{{
>>> ModelA.objects.all ()[0].name_array
[u'F(name)']
}}}
I see what you've done there django, but that's not quite what I meant.
--
Ticket URL: <https://code.djangoproject.com/ticket/24709>
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/046.0dccbbbea09cd46093339cec8f3ee70a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.