#36207: refresh_from_db() doesn't refresh ForeignObject relations
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  Gregory
                                     |  Mariani
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Gregory Mariani):

 What's the behavior expected ?
 Because comment.user = None will set the value and obviously
 self.assertEqual(comment.user, self.user_1) will raise with my update:


 {{{
 composite_pk.models.tenant.Comment.user.RelatedObjectDoesNotExist: Comment
 has no user.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36207#comment:8>
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/01070195340a7e47-feb4a065-b46b-454b-a0a7-e693490554c4-000000%40eu-central-1.amazonses.com.

Reply via email to