#34474: Django apps   registry  returns the wrong models
-------------------------------------------------+------------------------
               Reporter:  Dimitris Kougioumtzis  |          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                      |
-------------------------------------------------+------------------------
 When i want to get the models for the app sites  it returns the wrong
 models


 {{{
 def get_models(request):
     app = request.GET.get('app')
     models = []
     amodels = apps.get_models(app)
     for model in amodels:
         models.append(model.__name__)
     return JsonResponse({"models":models})
 }}}

 when i call the function with  request parameters  sites  it returns
 models from the admin app

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34474>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701875c0f959a-0418e9d0-7587-4c3b-ab32-95619bf4c823-000000%40eu-central-1.amazonses.com.

Reply via email to