#36183: Model o2o inheritance with abstract models does not "evaluate" a lazy
relationship
-------------------------------------+-------------------------------------
     Reporter:  BeryCZ               |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  5.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce):

 Updated the test to call values_list:
 {{{
         self.assertSequenceEqual(
             ParkingLot4C.objects.order_by("name").values_list("name",
 flat=True),
             ["Parking4A"]
         )
 }}}
 And tested on 163a34ce4bc1086b346a52c7271f48d2c207f710 the original
 commit, this also errors with `AttributeError: 'str' object has no
 attribute '_meta'`.
 In which case, we have never supported the lazy relationship case (note
 that `parent = models.OneToOneField(Place, models.CASCADE,
 parent_link=True)` passes).
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36183#comment:10>
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/0107019538a063ad-abe87e3c-accd-4275-b3cf-40077b035e64-000000%40eu-central-1.amazonses.com.

Reply via email to