#24034: ArrayField.deconstruct always overwrites path
----------------------------------+--------------------
     Reporter:  kostko            |      Owner:
         Type:  Uncategorized     |     Status:  new
    Component:  contrib.postgres  |    Version:  master
     Severity:  Normal            |   Keywords:
 Triage Stage:  Unreviewed        |  Has patch:  0
Easy pickings:  0                 |      UI/UX:  0
----------------------------------+--------------------
 The new `django.contrib.postgres.fields.ArrayField` seems to always
 overwrite the `path` element in the returned `deconstruct` tuple instead
 of using the path generated by `Field` base class. This causes the path to
 be wrong in ArrayField subclasses and requires it to be explicitly set
 instead of just using the one generated by the `Field` base class.

 It would be better to change it to something like in the `Field` class,
 where the current value of the `path` is checked first before rewriting
 the path into a shorter form.

--
Ticket URL: <https://code.djangoproject.com/ticket/24034>
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/049.5674e64d3bde34bda335308ffa375a5b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to