#36952: Fix alter_field when called on a field that not has attribute: concrete
-------------------------------------+-------------------------------------
Reporter: kenshin6x | Owner: (none)
Type: Uncategorized | Status: closed
Component: Database layer | Version: 6.0
(models, ORM) |
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* resolution: => needsinfo
* status: new => closed
Comment:
`Field.concrete` is set at `Field.set_attributes_from_name` time which
should be systematically called before passing objects to the schema
editor.
If there is a core code path that doesn't do so that's likely where the
bug lies and not in the schema editor itself.
Given you haven't provided any way to reproduce the problem that
demonstrate Django is at fault I'll close the ticket and the associated PR
for now.
Please re-open if you can provide a clear example where Django calls
`alter_field` with a `Field` instance that hasn't been prepared with a
prior `set_attributes_from_name` call.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36952#comment:2>