#34725: get_containing_app_config  does not find an object in a module imported
with an absolute path from project root
-----------------------------------------+------------------------
               Reporter:  piscvau        |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  4.2
               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              |
-----------------------------------------+------------------------
 in a test file where I need to import a Model module with an absolute path
 of type :
 <base_dir>.<app_dir>.<models>.<module>

 the get_containing_appconfig(self, object_name) of registry does not find
 the app_config, because the object name does not start with the appname.
 consequently, an exception is raised indicating that the model is not in
 an application in INSTALLED_APPS which is incorrect

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34725>
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/010701897389dbca-bfaf42bf-f4d5-4af1-9587-e9a5471b3fc7-000000%40eu-central-1.amazonses.com.

Reply via email to