#22534: Checks fail on non-swappable ForeignKeys when the related model is 
swapped
out
---------------------------------+--------------------
     Reporter:  bendavis78       |      Owner:  nobody
         Type:  Bug              |     Status:  new
    Component:  Migrations       |    Version:  master
     Severity:  Release blocker  |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+--------------------
 The documentation states that setting `swappable=False` on a `ForeignKey`
 allows you to reference a swappable model even if that model is swapped
 out. Unfortunately this doesn't work because RelatedField's check function
 will look for that model in `apps.get_models()`, which doesn't include
 swapped models by default.

 If a `ForeignKey` references a swapped out model and has swappable=False,
 shouldn't that model be loaded? It seems to me that `swapped=False` will
 never work because of this.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22534>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.348a23275a0a774cdd41fe73de4a99ca%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to