#31450: Querying on ArrayField(PointField) returns string instead of list
-------------------------------------+-------------------------------------
     Reporter:  Nitin Sangwan        |                    Owner:  Lakshya
                                     |  Prasad
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.postgres     |                  Version:  3.0
     Severity:  Normal               |               Resolution:
     Keywords:  ArrayField,          |             Triage Stage:  Accepted
  PointField                         |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Lakshya Prasad):

 Hi, I worked on this ticket and opened a pull request.

 PR: https://github.com/django/django/pull/20925

 The patch ensures that `ArrayField` falls back to `base_field.to_python()`
 when `from_db_value()` is not implemented by the base field (e.g.
 `PointField`), which prevents the value from being returned as a string.

 Feedback welcome. Thanks!
-- 
Ticket URL: <https://code.djangoproject.com/ticket/31450#comment:11>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019cf80c8394-6bb3792e-a2f1-417b-91ca-52455949d3d1-000000%40eu-central-1.amazonses.com.

Reply via email to