#35359: Got `django.core.exceptions.FieldError` when adding GeneratedField
---------------------------------+------------------------------------
     Reporter:  wd0517           |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Migrations       |                  Version:  5.0
     Severity:  Release blocker  |               Resolution:
     Keywords:  GeneratedField   |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+------------------------------------
Changes (by Simon Charette):

 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted

Comment:

 The auto-detector has to be adapted to make the `AddField` of generated
 field depend on any other `AddField` or `AlterField` of field it
 references through `.expression`. Since `GeneratedField` cannot depend on
 other `GeneratedField` the easier way of doing to avoid introspecting
 `.expression` is likely to make them depend on all other
 non-`GeneratedField` fields being added per model so they are always last.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35359#comment:1>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018eb6a16bd1-3bb37cb8-cd79-47c7-9e3d-acbd48aadd54-000000%40eu-central-1.amazonses.com.

Reply via email to