#32853: apps.get_model in RunPython returning "LookupError: No installed app 
with
label"
------------------------------------------+------------------------
               Reporter:  Gordon Wrigley  |          Owner:  nobody
                   Type:  Uncategorized   |         Status:  new
              Component:  Uncategorized   |        Version:  3.1
               Severity:  Normal          |       Keywords:
           Triage Stage:  Unreviewed      |      Has patch:  0
    Needs documentation:  0               |    Needs tests:  0
Patch needs improvement:  0               |  Easy pickings:  0
                  UI/UX:  0               |
------------------------------------------+------------------------
 This is just a possible space for catching user errors and warning about
 them.
 I have two apps, a backfill migration created with --empty and using
 RunPython in app A is using apps.get_model to get a model from app B.
 However the migration has no dependency on app B.
 Depending on runtime ordering of migrations this may cause a LookupError,
 or it may work.
 It feels like apps.get_model could be noticing that based on the
 dependency graph the referenced app/model may not exist.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32853>
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/050.152600e51295628f12f8f91343162749%40djangoproject.com.

Reply via email to