#36580: Model validation of constraints fails if condition's Q object references
ForeignObject
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:
                                     |  JaeHyuckSa
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  needsinfo
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

 * resolution:   => needsinfo
 * status:  assigned => closed

Comment:

 I neglected to check a test project, there's a system check preventing you
 from getting into this situation:

 {{{
 ERRORS:
 models.OrderLineItem: (models.E012) 'constraints' refers to the
 nonexistent field 'user'.
 }}}

 So this needs a more realistic test case to find out if there's a usage of
 `Q()` supported on 5.2 that is actually breaking here.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36580#comment:4>
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/01070198fac0f020-738c8c49-0cc2-4ade-96d9-7070bf93d145-000000%40eu-central-1.amazonses.com.

Reply via email to