#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 adamchainz):

 I have written a similar separate F API for the the comma-separated fields
 in Django-MySQL - see http://django-
 mysql.readthedocs.org/en/latest/model_fields.html#listf-expressions . I
 made a `ListF` class for doing single atomic add/remove operations on
 either end of the list, which is about all that can be done with MySQL's
 comma-separated-list parsing capabilities.

 It is obviously much less involved than Postgres' arrays, but maybe it
 will inspire. I think add/remove operations are quite useful to consider
 on top of the 'set element at position X to Y' and 'set array field to
 [Y]' operations.

--
Ticket URL: <https://code.djangoproject.com/ticket/24709#comment:3>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.fb22d6bec7fc7848137a19a6209300ec%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to